mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-21 22:12:58 +02:00
Fix #4643 (Error converting .prc => .mobi)
This commit is contained in:
parent
5505ad7a53
commit
b542c8a090
1 changed files with 2 additions and 0 deletions
|
|
@ -164,6 +164,8 @@ def mobimlize_content(self, tag, text, bstate, istates):
|
|||
parent = bstate.nested[-1] if bstate.nested else bstate.body
|
||||
indent = istate.indent
|
||||
left = istate.left
|
||||
if isinstance(indent, basestring):
|
||||
indent = 0
|
||||
if indent < 0 and abs(indent) < left:
|
||||
left += indent
|
||||
indent = 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue