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(' ')
- 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)