mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
And another bad regex conversion to raw string
This commit is contained in:
parent
d01d6d689c
commit
161000b587
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user