Skip to content

Commit

Permalink
put r attributes right on the element when inlining
Browse files Browse the repository at this point in the history
  • Loading branch information
fitnr committed Mar 9, 2016
1 parent 07ee3fb commit 054c25b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions svgis/dom.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ def apply_rule(doc, rule):
for el in els:
style = _style_dict(el.attrib.get('style'))
style.update(declaration)
# special case: add circle radius directly to the element
if 'r' in style:
el.attrib['r'] = style['r']
del style['r']
el.attrib['style'] = _style_string(style)


Expand Down

0 comments on commit 054c25b

Please sign in to comment.