workflow: another hack to convert from salmon to page-subject class
This commit is contained in:
parent
2d185c2213
commit
20ea4104cc
|
@ -69,6 +69,8 @@ def remove_style(node, top):
|
|||
m = re.search('(?:stroke|fill):salmon', style)
|
||||
if m:
|
||||
top.set('class', top.get('class','') + ' page-subject')
|
||||
if child.get('fill') == 'salmon':
|
||||
top.set('class', top.get('class', '') + ' page-subject')
|
||||
if child.get('font-family'):
|
||||
del child.attrib['font-family']
|
||||
if child.get('font-size'):
|
||||
|
|
Loading…
Reference in New Issue