enhanced logic for Cleanup Styles extension
This commit is contained in:
parent
f73c58147c
commit
5949668e12
@ -164,7 +164,14 @@ class Cleanup(inkex.EffectExtension):
|
||||
declarations[i] = prop + ':' + new_val
|
||||
if prop == 'fill-opacity':
|
||||
new_val = '1'
|
||||
declarations[i] = prop + ':' + new_val
|
||||
declarations[i] = prop + ':' + new_val
|
||||
if self.options.apply_hairlines is False:
|
||||
if prop == '-inkscape-stroke':
|
||||
if val == 'hairline':
|
||||
del declarations[i]
|
||||
if prop == 'vector-effect':
|
||||
if val == 'non-scaling-stroke':
|
||||
del declarations[i]
|
||||
node.set('style', ';'.join(declarations))
|
||||
|
||||
# if element is group we add it to collection to remove it's style after parsing all selected items
|
||||
|
Reference in New Issue
Block a user