mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-03-03 08:04:27 +01:00
Handle nbsp in all its incarnations.
This commit is contained in:
parent
59a1af6050
commit
d4b540b8cf
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ class HTMLConverter(object):
|
|||
(re.compile(r'<a.*?>(.*?)</a\s*>', re.DOTALL|re.IGNORECASE),
|
||||
lambda match: re.compile(r'<\s*?p.*?>', re.IGNORECASE).sub('', match.group())),
|
||||
# Workaround bug in BeautifulSoup handling
|
||||
(re.compile(r' ', re.IGNORECASE), lambda match : u'\uffff')
|
||||
(re.compile(u' | | |\xa0', re.IGNORECASE), lambda match : u'\uffff')
|
||||
]
|
||||
# Fix Baen markup
|
||||
BAEN = [
|
||||
|
|
|
|||
Loading…
Reference in a new issue