mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
fix for smartypants getting screwed up by formatting tags within a sentence.
This commit is contained in:
parent
d82f376ccd
commit
a1b7341d80
@ -601,10 +601,6 @@ def educateQuotes(str):
|
||||
# Special case for Quotes at end of line with a preceeding space (may change just to end of line)
|
||||
str = re.sub(r"""(?<=\s)"$""", r"""”""", str)
|
||||
str = re.sub(r"""(?<=\s)'$""", r"""’""", str)
|
||||
|
||||
# Special case for Quotes at beginning of line with a space - multiparagraph quoted text:
|
||||
str = re.sub(r"""^"(?=\s)""", r"""“""", str)
|
||||
str = re.sub(r"""^'(?=\s)""", r"""‘""", str)
|
||||
|
||||
# Special case for decade abbreviations (the '80s):
|
||||
str = re.sub(r"""\b'(?=\d{2}s)""", r"""’""", str)
|
||||
|
Loading…
x
Reference in New Issue
Block a user