mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
Add formatting for <cite>
This commit is contained in:
parent
5dd28389f9
commit
c0ac717d49
@ -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'):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user