From 24a0c5e1b6142781b70bb20af6452d3c455bd6b0 Mon Sep 17 00:00:00 2001 From: John Schember Date: Sat, 3 Sep 2011 12:29:21 -0400 Subject: [PATCH] Textile output fix. --- src/calibre/ebooks/txt/textileml.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/calibre/ebooks/txt/textileml.py b/src/calibre/ebooks/txt/textileml.py index 36dc9952d2..52454dbc96 100644 --- a/src/calibre/ebooks/txt/textileml.py +++ b/src/calibre/ebooks/txt/textileml.py @@ -447,10 +447,10 @@ class TextileMLizer(OEB2HTML): # Close all open tags. tags.reverse() for t in tags: - if tag in ('pre', 'ul', 'ol', 'li', 'table'): - if tag == 'pre': + if t in ('pre', 'ul', 'ol', 'li', 'table'): + if t == 'pre': self.in_pre = False - elif tag in ('ul', 'ol'): + elif t in ('ul', 'ol'): if self.list: self.list.pop() if not self.list: text.append('\n') else: