(func)
| 15 | return line |
| 16 | |
| 17 | def format_docstring(func): |
| 18 | docstring = (func.__doc__ or "Undocumented").rstrip() |
| 19 | docstring = indent(dedent(docstring)) |
| 20 | # Sphinx complains if indented bits have rst headings in, so strip out |
| 21 | # any underlines in the docstring. |
| 22 | lines = [_strip_underline(l) for l in docstring.splitlines()] |
| 23 | return "\n".join(lines) |
| 24 | |
| 25 | output = [ |
| 26 | "Line magics", |
no test coverage detected
searching dependent graphs…