mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1933684 [Error converting ePUB to MOBI](https://bugs.launchpad.net/calibre/+bug/1933684)
This commit is contained in:
parent
eda2a4421f
commit
0885b45097
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user