mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Fix #1805 (spurious ![endif]>![if> 's found in title and chapter)
This commit is contained in:
parent
dd675d6210
commit
b18f95c02f
@ -330,7 +330,8 @@ class PreProcessor(object):
|
||||
sanitize_head),
|
||||
# Convert all entities, since lxml doesn't handle them well
|
||||
(re.compile(r'&(\S+?);'), convert_entities),
|
||||
|
||||
# Remove <![if/endif tags inserted by everybodies darling, MS Word
|
||||
(re.compile(r'(?i)<{0,1}!\[(end){0,1}if[^>]*>'), lambda match: ''),
|
||||
]
|
||||
|
||||
# Fix pdftohtml markup
|
||||
|
Loading…
x
Reference in New Issue
Block a user