mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-08 22:33:42 +02:00
Add formatting for <cite>
This commit is contained in:
parent
5dd28389f9
commit
c0ac717d49
1 changed files with 2 additions and 1 deletions
|
|
@ -308,6 +308,7 @@ def __init__(self, book, fonts, path,
|
|||
b = {"font-weight" : "bold"},
|
||||
strong = {"font-weight" : "bold"},
|
||||
i = {"font-style" : "italic"},
|
||||
cite = {'font-style' : 'italic'},
|
||||
em = {"font-style" : "italic"},
|
||||
small = {'font-size' : 'small'},
|
||||
pre = {'font-family' : 'monospace' },
|
||||
|
|
@ -1176,7 +1177,7 @@ def update_css(ncss):
|
|||
self.current_block.append(CR())
|
||||
if tag.has_key('id'):
|
||||
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)
|
||||
elif tagname == 'font':
|
||||
if tag.has_key('face'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue