mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Don't replace & during pre-processing
This commit is contained in:
parent
a16d26a116
commit
29bbe3e72a
@ -85,7 +85,8 @@ class HTMLConverter(object):
|
|||||||
# Workaround bug in BeautifulSoup handling
|
# Workaround bug in BeautifulSoup handling
|
||||||
(re.compile(u' | | |\xa0', re.IGNORECASE), lambda match : u'\uffff'),
|
(re.compile(u' | | |\xa0', re.IGNORECASE), lambda match : u'\uffff'),
|
||||||
# Replace entities
|
# Replace entities
|
||||||
(re.compile(ur'&(\S+?);'), partial(entity_to_unicode, exceptions=['lt', 'gt'])),
|
(re.compile(ur'&(\S+?);'), partial(entity_to_unicode,
|
||||||
|
exceptions=['lt', 'gt', 'amp'])),
|
||||||
]
|
]
|
||||||
# Fix Baen markup
|
# Fix Baen markup
|
||||||
BAEN = [
|
BAEN = [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user