This commit is contained in:
Kovid Goyal 2011-09-03 14:16:37 -06:00
commit ac33becacd
2 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -33,8 +33,8 @@ def get_filters():
(_('LIT Books'), ['lit']), (_('LIT Books'), ['lit']),
(_('MOBI Books'), ['mobi', 'prc', 'azw']), (_('MOBI Books'), ['mobi', 'prc', 'azw']),
(_('Topaz books'), ['tpz','azw1']), (_('Topaz books'), ['tpz','azw1']),
(_('Text books'), ['txt', 'rtf']), (_('Text books'), ['txt', 'text', 'rtf']),
(_('PDF Books'), ['pdf']), (_('PDF Books'), ['pdf', 'azw4']),
(_('SNB Books'), ['snb']), (_('SNB Books'), ['snb']),
(_('Comics'), ['cbz', 'cbr', 'cbc']), (_('Comics'), ['cbz', 'cbr', 'cbc']),
(_('Archives'), ['zip', 'rar']), (_('Archives'), ['zip', 'rar']),