mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Textile output fix.
This commit is contained in:
parent
acfc3acbb3
commit
24a0c5e1b6
@ -447,10 +447,10 @@ class TextileMLizer(OEB2HTML):
|
|||||||
# Close all open tags.
|
# Close all open tags.
|
||||||
tags.reverse()
|
tags.reverse()
|
||||||
for t in tags:
|
for t in tags:
|
||||||
if tag in ('pre', 'ul', 'ol', 'li', 'table'):
|
if t in ('pre', 'ul', 'ol', 'li', 'table'):
|
||||||
if tag == 'pre':
|
if t == 'pre':
|
||||||
self.in_pre = False
|
self.in_pre = False
|
||||||
elif tag in ('ul', 'ol'):
|
elif t in ('ul', 'ol'):
|
||||||
if self.list: self.list.pop()
|
if self.list: self.list.pop()
|
||||||
if not self.list: text.append('\n')
|
if not self.list: text.append('\n')
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user