mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 10:44:09 -04:00
DOCX: Fix margins / positioning of floating tables
This commit is contained in:
parent
2e7d406aac
commit
59c6ec11b1
@ -79,7 +79,7 @@ def read_spacing(parent, dest):
|
|||||||
def read_float(parent, dest):
|
def read_float(parent, dest):
|
||||||
ans = inherit
|
ans = inherit
|
||||||
for x in XPath('./w:tblpPr')(parent):
|
for x in XPath('./w:tblpPr')(parent):
|
||||||
ans = x.attrib
|
ans = {k.rpartition('}')[-1]: v for k, v in x.attrib.iteritems()}
|
||||||
setattr(dest, 'float', ans)
|
setattr(dest, 'float', ans)
|
||||||
|
|
||||||
def read_indent(parent, dest):
|
def read_indent(parent, dest):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user