Skip to content

Commit

Permalink
Merge pull request #31 from karl-kraus/elda/edition-typo/cleanup-wrap…
Browse files Browse the repository at this point in the history
…-exclude

minor fix #28, #29
  • Loading branch information
linxOD authored Aug 29, 2024
2 parents 2c56e82 + 39542c6 commit 86c6e34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,13 @@ def wrap_last_sentence(file):
if not EXCLUDE:
sibling.getparent().remove(sibling)
s.append(sibling)
else:
break
else:
sibling.getparent().remove(sibling)
s.append(sibling)
else:
break
x.addnext(s)
with open(file, 'w') as f:
f.write(ET.tostring(doc, pretty_print=True).decode('utf-8'))
Expand Down

0 comments on commit 86c6e34

Please sign in to comment.