From 59c6ec11b1dff8522a6923df7ebd5eebacff9cef Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 6 Jun 2013 09:27:59 +0530 Subject: [PATCH] DOCX: Fix margins / positioning of floating tables --- src/calibre/ebooks/docx/tables.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/docx/tables.py b/src/calibre/ebooks/docx/tables.py index cac9a77d66..2e0296bfaa 100644 --- a/src/calibre/ebooks/docx/tables.py +++ b/src/calibre/ebooks/docx/tables.py @@ -79,7 +79,7 @@ def read_spacing(parent, dest): def read_float(parent, dest): ans = inherit 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) def read_indent(parent, dest):