mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1874 (calibre generated invalid epub)
This commit is contained in:
parent
3d455a02ea
commit
52e45253c8
@ -332,6 +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 : '-->'),
|
||||
]
|
||||
|
||||
# Fix pdftohtml markup
|
||||
|
Loading…
x
Reference in New Issue
Block a user