mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
EPUB Output:Strip all comments from input source since Adobe DE crashes and burns on "in comment markup". Fixes #1866 (Calibre 4.137 NY Time Subscription Issue)
This commit is contained in:
parent
367a8f5557
commit
da33e04397
@ -332,8 +332,8 @@ class PreProcessor(object):
|
||||
(re.compile(r'&(\S+?);'), convert_entities),
|
||||
# Remove the <![if/endif tags inserted by everybody's darling, MS Word
|
||||
(re.compile(r'(?i)<{0,1}!\[(end){0,1}if[^>]*>'), lambda match: ''),
|
||||
# Replace ---> with --> since Adobe DE cries when it sees one
|
||||
(re.compile(r'-{3,}>'), lambda match : '-->'),
|
||||
# Strip all comments since Adobe DE is petrified of them
|
||||
(re.compile(r'<!--[^>]*>'), lambda match : ''),
|
||||
]
|
||||
|
||||
# Fix pdftohtml markup
|
||||
|
Loading…
x
Reference in New Issue
Block a user