mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 00:13:50 +02:00
Conversion: Correctly handle values of left, right for the deprecated align attribute of images, mapping them to the CSS float property instead of text-align. Fixes #1081094 (Text not wrapping alongside images that are left/right aligned when converting to epub)
This commit is contained in:
parent
f7310d5b99
commit
b6b2b39cf6
1 changed files with 1 additions and 1 deletions
|
|
@ -313,7 +313,7 @@ def flatten_node(self, node, stylizer, names, styles, pseudo_styles, psize, item
|
|||
if val in ('middle', 'bottom', 'top'):
|
||||
cssdict['vertical-align'] = val
|
||||
elif val in ('left', 'right'):
|
||||
cssdict['text-align'] = val
|
||||
cssdict['float'] = val
|
||||
del node.attrib['align']
|
||||
if node.tag == XHTML('font'):
|
||||
tags = ['descendant::h:%s'%x for x in ('p', 'div', 'table', 'h1',
|
||||
|
|
|
|||
Loading…
Reference in a new issue