mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
TXT Input: Textile: Fix issue with double closings.
This commit is contained in:
parent
a300879f70
commit
9ad00b98d4
@ -216,7 +216,7 @@ class Textile(object):
|
||||
(re.compile(r'(\S)\'(?=\s|\'|<|$)'), r'\1’'), # single closing
|
||||
(re.compile(r'\'/'), r'‘'), # single opening
|
||||
(re.compile(r'(\")\"'), r'\1”'), # double closing - following another
|
||||
(re.compile(r'(\S)\"(?=\s|\"|<|$)'), r'\1”'), # double closing
|
||||
(re.compile(r'(\S)\"(?=\s|”|<|$)'), r'\1”'), # double closing
|
||||
(re.compile(r'"'), r'“'), # double opening
|
||||
(re.compile(r'\b([A-Z][A-Z0-9]{2,})\b(?:[(]([^)]*)[)])'), r'<acronym title="\2">\1</acronym>'), # 3+ uppercase acronym
|
||||
(re.compile(r'\b([A-Z][A-Z\'\-]+[A-Z])(?=[\s.,\)>])'), r'<span class="caps">\1</span>'), # 3+ uppercase
|
||||
|
Loading…
x
Reference in New Issue
Block a user