And another bad regex conversion to raw string

This commit is contained in:
Kovid Goyal 2025-02-08 08:17:31 +05:30
parent d01d6d689c
commit 161000b587
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -62,7 +62,7 @@ class TextRun:
self.first_html_parent = first_html_parent self.first_html_parent = first_html_parent
if self.ws_pat is None: if self.ws_pat is None:
TextRun.ws_pat = self.ws_pat = re.compile(r'\s+') 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.style = style
self.texts = [] self.texts = []
self.link = None self.link = None