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 a0f23d0 commit b1dc64fCopy full SHA for b1dc64f
scripts/shared.py
@@ -220,9 +220,11 @@ def update_readme(
220
entry_start_index = lines.index(entry_start_line)
221
entry_end_index = lines.index(entry_end_line)
222
# Include any trailing empty/whitespace-only lines
223
- while (entry_end_index + 1 < len(lines)
224
- and not lines[entry_end_index + 1].strip()):
225
- entry_end_index += 1
+ while entry_end_index + 1 < len(lines):
+ if not lines[entry_end_index + 1].strip():
+ entry_end_index += 1
226
+ else:
227
+ break
228
# Initalize variables of entry is not present
229
else:
230
entry_start_index = None
0 commit comments