workflow: another hack to convert from salmon to page-subject class

This commit is contained in:
Frédéric Péters 2012-08-16 11:27:09 +02:00
parent 2d185c2213
commit 20ea4104cc
1 changed files with 2 additions and 0 deletions

View File

@ -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'):