Add formatting for <cite>

This commit is contained in:
Kovid Goyal 2007-07-20 04:14:29 +00:00
parent 5dd28389f9
commit c0ac717d49

View File

@ -308,6 +308,7 @@ class HTMLConverter(object):
b = {"font-weight" : "bold"}, b = {"font-weight" : "bold"},
strong = {"font-weight" : "bold"}, strong = {"font-weight" : "bold"},
i = {"font-style" : "italic"}, i = {"font-style" : "italic"},
cite = {'font-style' : 'italic'},
em = {"font-style" : "italic"}, em = {"font-style" : "italic"},
small = {'font-size' : 'small'}, small = {'font-size' : 'small'},
pre = {'font-family' : 'monospace' }, pre = {'font-family' : 'monospace' },
@ -1176,7 +1177,7 @@ class HTMLConverter(object):
self.current_block.append(CR()) self.current_block.append(CR())
if tag.has_key('id'): if tag.has_key('id'):
self.targets[tag['id']] = self.current_block self.targets[tag['id']] = self.current_block
elif tagname in ['b', 'strong', 'i', 'em', 'span', 'tt', 'big', 'code']: elif tagname in ['b', 'strong', 'i', 'em', 'span', 'tt', 'big', 'code', 'cite']:
self.process_children(tag, tag_css) self.process_children(tag, tag_css)
elif tagname == 'font': elif tagname == 'font':
if tag.has_key('face'): if tag.has_key('face'):