Fix #1874 (calibre generated invalid epub)

This commit is contained in:
Kovid Goyal 2009-02-17 12:32:48 -08:00
parent 3d455a02ea
commit 52e45253c8

View File

@ -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