From a944d488a041a8ebaedc0722daa0268a9d88fc74 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 12 Dec 2009 19:50:16 -0700 Subject: [PATCH] ... --- src/calibre/ebooks/fb2/fb2ml.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/src/calibre/ebooks/fb2/fb2ml.py b/src/calibre/ebooks/fb2/fb2ml.py index d991c0072b..b454d7c7ab 100644 --- a/src/calibre/ebooks/fb2/fb2ml.py +++ b/src/calibre/ebooks/fb2/fb2ml.py @@ -48,10 +48,6 @@ TAG_LINKS = [ 'a', ] -TAG_TITLE = [ - 'h1', -] - STYLES = [ ('font-weight', {'bold' : 'strong', 'bolder' : 'strong'}), ('font-style', {'italic' : 'emphasis'}), @@ -255,17 +251,6 @@ class FB2MLizer(object): fb2_text.append('

') tags.append('p') - '''if tag in TAG_TITLE: - if 'p' in tag_stack: - ctag = [] - ctag.append(tag_stack.pop()) - while ctag[-1] != 'p': - ctag.append(tag_stack.pop()) - fb2_text += self.close_tags(ctag) - fb2_text.append('

<p>') - tag_stack.append('title') - tag_stack.append('p')''' - fb2_tag = TAG_MAP.get(tag, None) if fb2_tag and fb2_tag not in tag_stack+tags: fb2_text.append('<%s>' % fb2_tag)