mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04: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
@ -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 : ' '),
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user