Skip to content

Commit

Permalink
Update step_6.py
Browse files Browse the repository at this point in the history
  • Loading branch information
entorb committed Apr 27, 2024
1 parent 771053a commit 06b6e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/ebook/step_6.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def fix_ellipsis(s: str) -> str:
# before opening quotes: add space
s = re.sub(r"…(?=[„])", "… ", s)
# fine-tuning </em>… and …<em>
s = re.sub(r"(?<=</em>)…", "", s)
s = re.sub(r"(?<=</em>)…", "", s)
s = re.sub(r"…(?=<em>)", "… ", s)
return s

Expand Down

0 comments on commit 06b6e8e

Please sign in to comment.