deeplook / svglib

Read SVG files and convert them to other formats.
GNU Lesser General Public License v3.0
311 stars 80 forks source link

Allow multiple style nodes #326

Closed dbasedow closed 2 years ago

dbasedow commented 2 years ago

I am dealing with SVGs generated by a tool that puts a style tag for each class into defs. At the moment the result of using svg2rlg is that only the last style element is used.

This PR changes the behavior of renderStyle to append additional rules to the CSSMatcher that was created during initialization of SvgRenderer.

claudep commented 2 years ago

I don't know why CI tests don't run. Maybe you can try to squash and force push to see if it triggers CI tests?