This commit is contained in:
Kovid Goyal 2021-06-25 23:20:58 +05:30
parent eda2a4421f
commit 0885b45097
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -373,7 +373,10 @@ class MobiMLizer(object):
bstate.para = None bstate.para = None
istate.halign = style['text-align'] istate.halign = style['text-align']
rawti = style._get('text-indent') rawti = style._get('text-indent')
istate.indent = style['text-indent'] try:
istate.indent = style['text-indent']
except Exception:
istate.indent = 0
if hasattr(rawti, 'strip') and '%' in rawti: if hasattr(rawti, 'strip') and '%' in rawti:
# We have a percentage text indent, these can come out looking # We have a percentage text indent, these can come out looking
# too large if the user chooses a wide output profile like # too large if the user chooses a wide output profile like