mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-02-07 06:05:45 +01:00
...
This commit is contained in:
parent
81c365b3a9
commit
0edf1e550e
1 changed files with 2 additions and 0 deletions
|
|
@ -272,9 +272,11 @@ def punctuation_unwrap(self, length, content, format):
|
|||
|
||||
unwrap = re.compile(u"%s" % unwrap_regex, re.UNICODE)
|
||||
em_en_unwrap = re.compile(u"%s" % em_en_unwrap_regex, re.UNICODE)
|
||||
shy_unwrap = re.compile(u"%s" % shy_unwrap_regex, re.UNICODE)
|
||||
|
||||
content = unwrap.sub(' ', content)
|
||||
content = em_en_unwrap.sub('', content)
|
||||
content = shy_unwrap.sub('', content)
|
||||
return content
|
||||
|
||||
def txt_process(self, match):
|
||||
|
|
|
|||
Loading…
Reference in a new issue