We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5dbed37 commit 66c1b18Copy full SHA for 66c1b18
numpydoc/numpydoc.py
@@ -200,11 +200,11 @@ def match_items(lines, content_old):
200
j = 0
201
for i, line in enumerate(lines):
202
# go to next non-empty line in old:
203
- # line.strip("") checks whether the string is all whitespace
204
- while j < len(lines_old) - 1 and not lines_old[j].strip(" "):
+ # line.strip() checks whether the string is all whitespace
+ while j < len(lines_old) - 1 and not lines_old[j].strip():
205
j += 1
206
items_new.append(items_old[j])
207
- if line.strip(" ") and j < len(lines_old) - 1:
+ if line.strip() and j < len(lines_old) - 1:
208
209
assert(len(items_new) == len(lines))
210
return items_new
0 commit comments