fix hanging not being subtracted

This commit is contained in:
Kovid Goyal 2013-05-10 10:04:22 +05:30
parent 1a9b437d63
commit 9136a8cc6a

View File

@ -113,6 +113,8 @@ def read_indent(parent, dest):
h, hc = get(indent, 'w:hanging'), get(indent, 'w:hangingChars') h, hc = get(indent, 'w:hanging'), get(indent, 'w:hangingChars')
fl, flc = get(indent, 'w:firstLine'), get(indent, 'w:firstLineChars') 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 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) 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: if ti is not None: