mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
added comments
This commit is contained in:
parent
05beaaf1f3
commit
364c5cf492
@ -603,6 +603,9 @@ def educateQuotes(str):
|
||||
str = re.sub(r"""(?<=\s)'$""", r"""’""", str)
|
||||
|
||||
# Special case for Quotes at beginning of line with a space - multiparagraph quoted text:
|
||||
# This case commented out as it works under the assumption that the regex pattern will always
|
||||
# evaluate a complete sentence - the tokenize function called earlier in smarty will break up
|
||||
# the text based on tags, so sentence fragments can be passed to the patterns as well.
|
||||
#str = re.sub(r"""^"(?=\s)""", r"""“""", str)
|
||||
#str = re.sub(r"""^'(?=\s)""", r"""‘""", str)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user