mirror of
https://github.com/kovidgoyal/calibre.git
synced 2026-05-30 18:45:20 -04:00
Make font-weight: 600 or 700 into font-weight: bold
This commit is contained in:
@@ -206,6 +206,9 @@ def cleanup_qt_markup(root):
|
||||
remove_zero_indents(ts)
|
||||
for style in itervalues(style_map):
|
||||
filter_qt_styles(style)
|
||||
fw = style.get('font-weight')
|
||||
if fw in ('600', '700'):
|
||||
style['font-weight'] = 'bold'
|
||||
for tag, style in iteritems(style_map):
|
||||
if style:
|
||||
tag.set('style', '; '.join(f'{k}: {v}' for k, v in iteritems(style)))
|
||||
|
||||
Reference in New Issue
Block a user