mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 14:04:12 +02:00
Fix #1933684 [Error converting ePUB to MOBI](https://bugs.launchpad.net/calibre/+bug/1933684)
This commit is contained in:
parent
eda2a4421f
commit
0885b45097
1 changed files with 4 additions and 1 deletions
|
|
@ -373,7 +373,10 @@ def mobimlize_elem(self, elem, stylizer, bstate, istates,
|
|||
bstate.para = None
|
||||
istate.halign = style['text-align']
|
||||
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:
|
||||
# We have a percentage text indent, these can come out looking
|
||||
# too large if the user chooses a wide output profile like
|
||||
|
|
|
|||
Loading…
Reference in a new issue