From 161000b5874dcbe0d78e88bbe20119e619ad5977 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 8 Feb 2025 08:17:31 +0530 Subject: [PATCH] And another bad regex conversion to raw string --- src/calibre/ebooks/docx/writer/from_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/docx/writer/from_html.py b/src/calibre/ebooks/docx/writer/from_html.py index 2fadea4027..3e42631fa1 100644 --- a/src/calibre/ebooks/docx/writer/from_html.py +++ b/src/calibre/ebooks/docx/writer/from_html.py @@ -62,7 +62,7 @@ class TextRun: self.first_html_parent = first_html_parent if self.ws_pat is None: TextRun.ws_pat = self.ws_pat = re.compile(r'\s+') - TextRun.soft_hyphen_pat = self.soft_hyphen_pat = re.compile(r'(\u00ad)') + TextRun.soft_hyphen_pat = self.soft_hyphen_pat = re.compile(r'(\xad)') self.style = style self.texts = [] self.link = None