From 9136a8cc6ab6f30badcc30c613c53c39dee58bb6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 10 May 2013 10:04:22 +0530 Subject: [PATCH] fix hanging not being subtracted --- src/calibre/ebooks/docx/block_styles.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/ebooks/docx/block_styles.py b/src/calibre/ebooks/docx/block_styles.py index 3d1b91c957..1770569b61 100644 --- a/src/calibre/ebooks/docx/block_styles.py +++ b/src/calibre/ebooks/docx/block_styles.py @@ -113,6 +113,8 @@ def read_indent(parent, dest): h, hc = get(indent, 'w:hanging'), get(indent, 'w:hangingChars') fl, flc = get(indent, 'w:firstLine'), get(indent, 'w:firstLineChars') + h = h if h is None else '-'+h + hc = hc if hc is None else '-'+hc ti = (simple_float(hc, 0.01) if hc is not None else simple_float(h, 0.05) if h is not None else simple_float(flc, 0.01) if flc is not None else simple_float(fl, 0.05) if fl is not None else None) if ti is not None: