mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 16:43:40 +02:00
Don't replace & during pre-processing
This commit is contained in:
parent
a16d26a116
commit
29bbe3e72a
1 changed files with 2 additions and 1 deletions
|
|
@ -85,7 +85,8 @@ class HTMLConverter(object):
|
|||
# Workaround bug in BeautifulSoup handling
|
||||
(re.compile(u' | | |\xa0', re.IGNORECASE), lambda match : u'\uffff'),
|
||||
# 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
|
||||
BAEN = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue