mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-08-11 09:13:57 -04:00
Fix #4108 (Bug when convertinf an LRF file to MOBI)
This commit is contained in:
parent
7e45095b00
commit
de0631f927
@ -55,6 +55,9 @@
|
|||||||
- title: "LIT Input: Remove more invalid markup present in LIT files created by Microsoft Word plugins"
|
- title: "LIT Input: Remove more invalid markup present in LIT files created by Microsoft Word plugins"
|
||||||
tickets: [4087]
|
tickets: [4087]
|
||||||
|
|
||||||
|
- title: "LRF Input: Workaround buggy LRF files with unbalanced closing tags"
|
||||||
|
tickets: [4108]
|
||||||
|
|
||||||
new recipes:
|
new recipes:
|
||||||
- title: The Economist (no subscription required)
|
- title: The Economist (no subscription required)
|
||||||
author: Kovid Goyal
|
author: Kovid Goyal
|
||||||
|
@ -872,8 +872,9 @@ class Text(LRFStream):
|
|||||||
if isinstance(c, basestring):
|
if isinstance(c, basestring):
|
||||||
s += c
|
s += c
|
||||||
elif c is None:
|
elif c is None:
|
||||||
p = open_containers.pop()
|
if open_containers:
|
||||||
s += u'</%s>'%(p.name,)
|
p = open_containers.pop()
|
||||||
|
s += u'</%s>'%(p.name,)
|
||||||
else:
|
else:
|
||||||
s += unicode(c)
|
s += unicode(c)
|
||||||
if not c.self_closing:
|
if not c.self_closing:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user