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
|
||||
istate.halign = style['text-align']
|
||||
rawti = style._get('text-indent')
|
||||
try:
|
||||
istate.indent = style['text-indent']
|
||||
except Exception:
|
||||
istate.indent = 0
|
||||
if hasattr(rawti, 'strip') and '%' in rawti:
|
||||
# We have a percentage text indent, these can come out looking
|
||||
# too large if the user chooses a wide output profile like
|
||||
|
Loading…
x
Reference in New Issue
Block a user