mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-03 22:15:52 +02:00
PDF Input: Replace non-breaking spaces with normal spaces. Fixes #2104 (epub justification problems with converted pdf)
This commit is contained in:
parent
6fbe65b598
commit
3c5d1b69c5
1 changed files with 4 additions and 1 deletions
|
|
@ -355,7 +355,10 @@ class PreProcessor(object):
|
|||
(re.compile(r'-\n\r?'), lambda match: ''),
|
||||
|
||||
# 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 : ' '),
|
||||
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue