mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-29 05:14:14 +02:00
Conversion: Fix incorrect conversion of east-asian characters in CSS class names. Fixes #1390527 [lost the style's names when converting to another format](https://bugs.launchpad.net/calibre/+bug/1390527)
This commit is contained in:
parent
e6f4c169d9
commit
b20088191e
1 changed files with 1 additions and 1 deletions
|
|
@ -474,7 +474,7 @@ def force_int(raw):
|
|||
# lower() because otherwise if the document uses the same class
|
||||
# name with different case, both cases will apply, leading
|
||||
# to incorrect results.
|
||||
klass = ascii_text(STRIPNUM.sub('', classes.split()[0])).lower()
|
||||
klass = ascii_text(STRIPNUM.sub('', classes.split()[0])).lower().strip().replace(' ', '_')
|
||||
if css in styles:
|
||||
match = styles[css]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue