From 06b6e8e33788c5ad1a1ad79179aed248441c097a Mon Sep 17 00:00:00 2001 From: Torben <59419684+entorb@users.noreply.github.com> Date: Sat, 27 Apr 2024 03:46:57 +0200 Subject: [PATCH] Update step_6.py --- scripts/ebook/step_6.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/ebook/step_6.py b/scripts/ebook/step_6.py index 6767a5a30..c856a3704 100755 --- a/scripts/ebook/step_6.py +++ b/scripts/ebook/step_6.py @@ -31,7 +31,7 @@ def fix_ellipsis(s: str) -> str: # before opening quotes: add space s = re.sub(r"…(?=[„])", "… ", s) # fine-tuning … and … - s = re.sub(r"(?<=)…", " …", s) + s = re.sub(r"(?<=)…", "… ", s) s = re.sub(r"…(?=)", "… ", s) return s