ODT Input: Fix images specified with top offsets overlapping text when converted to EPUB. Fixes #884759 (Image size detection problem while converting to OEB)

This commit is contained in:
Kovid Goyal 2011-11-11 10:42:16 +05:30
parent 8d319b7630
commit 061ed389ca

View File

@ -65,7 +65,7 @@ class Extract(ODF2XHTML):
div1 = div2.getparent()
if len(div1) == len(div2) == 1:
style = div2.attrib['style']
div2.attrib['style'] = 'display:inline;'+style
div2.attrib['style'] = 'position:static;display:inline;'+style
def filter_css(self, root, log):