PDF Input: Replace non-breaking spaces with normal spaces. Fixes #2104 (epub justification problems with converted pdf)

This commit is contained in:
Kovid Goyal 2009-03-21 11:56:43 -07:00
parent 6fbe65b598
commit 3c5d1b69c5

View File

@ -355,7 +355,10 @@ class PreProcessor(object):
(re.compile(r'-\n\r?'), lambda match: ''), (re.compile(r'-\n\r?'), lambda match: ''),
# Remove gray background # Remove gray background
(re.compile(r'<BODY[^<>]+>'), lambda match : '<BODY>') (re.compile(r'<BODY[^<>]+>'), lambda match : '<BODY>'),
# Remove non breaking spaces
(re.compile(ur'\u00a0'), lambda match : ' '),
] ]