Don't replace & during pre-processing

This commit is contained in:
Kovid Goyal 2007-12-03 04:58:33 +00:00
parent a16d26a116
commit 29bbe3e72a

View File

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