mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:04:26 +02:00
Fix #1933 (Text is not centered when converting from MOBI to LIT)
This commit is contained in:
commit
9fdd891f87
1 changed files with 1 additions and 1 deletions
|
|
@ -219,7 +219,7 @@ def flatten_node(self, node, stylizer, names, styles, psize, left=0):
|
|||
items.sort()
|
||||
css = u';\n'.join(u'%s: %s' % (key, val) for key, val in items)
|
||||
classes = node.get('class', None) or 'calibre'
|
||||
klass = STRIPNUM.sub('', classes.split()[0])
|
||||
klass = STRIPNUM.sub('', classes.split()[0].replace('_', ''))
|
||||
if css in styles:
|
||||
match = styles[css]
|
||||
else:
|
||||
|
|
|
|||
Loading…
Reference in a new issue