Skip to content

Commit 7ed60c8

Browse files
committed
make lines actually 80 chars long and dont guess
1 parent 333bf7b commit 7ed60c8

File tree

1 file changed

+11
-13
lines changed

1 file changed

+11
-13
lines changed

numpydoc/numpydoc.py

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -185,23 +185,21 @@ class NumpyCDomain(ManglingDomainBase, CDomain):
185185
def match_items(lines, content_old):
186186
"""Create items for mangled lines.
187187
188-
This function tries to match the lines in ``lines``
189-
with the items (source file references and line numbers)
190-
in ``content_old``. The ``mangle_docstrings`` function
191-
changes the actual docstrings, but doesn't keep track of
192-
where each line came from. The manging does many operations
188+
This function tries to match the lines in ``lines`` with the items (source
189+
file references and line numbers) in ``content_old``. The
190+
``mangle_docstrings`` function changes the actual docstrings, but doesn't
191+
keep track of where each line came from. The manging does many operations
193192
on the original lines, which are hard to track afterwards.
194193
195-
Many of the line changes come from deleting or inserting
196-
blank lines. This function tries to match lines by ignoring
197-
blank lines. All other changes (such as inserting figures
198-
or changes in the references) are compeltely ignored, so
199-
the generated line numbers will be off if ``mangle_docstrings``
194+
Many of the line changes come from deleting or inserting blank lines. This
195+
function tries to match lines by ignoring blank lines. All other changes
196+
(such as inserting figures or changes in the references) are compeltely
197+
ignored, so the generated line numbers will be off if ``mangle_docstrings``
200198
does anything non-trivial.
201199
202-
This is a best-effort function and the real fix would be
203-
to make ``mangle_docstrings`` actually keep track of the
204-
``items`` together with the ``lines``.
200+
This is a best-effort function and the real fix would be to make
201+
``mangle_docstrings`` actually keep track of the ``items`` together with
202+
the ``lines``.
205203
206204
Examples
207205
--------

0 commit comments

Comments
 (0)