<quote>
Of course, there are still edge cases falling through the cracks: namely a final space at the end of the style. It could be fixed by changing len(i) to len(i.strip()) or changing s.split(";") to s.strip().split(";")
It might be worth considering writing an actual parser instead of a one-liner.
</quote>
Also mentioned as known issue (comment #2) in /bugs.launchpad .net/inkscape/ +bug/837603>
- Bug #837603 “Simplestyle extension helper breaks on spaces in styles (with fix)”
<https:/
<quote> ).split( ";")
Of course, there are still edge cases falling through the cracks: namely a final space at the end of the style. It could be fixed by changing len(i) to len(i.strip()) or changing s.split(";") to s.strip(
It might be worth considering writing an actual parser instead of a one-liner.
</quote>