Fix handling of boolean flags in elliptical path commands (#183)
* properly parse paths without space after boolean flags (fixes #161) * omit space after boolean flag to shave off a few bytes when not using renderer workarounds
This commit is contained in:
parent
ba7f4b5f18
commit
103dcc0a48
4 changed files with 63 additions and 13 deletions
7
unittests/path-elliptical-flags.svg
Normal file
7
unittests/path-elliptical-flags.svg
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg viewBox="-100 -50 300 150" xmlns="http://www.w3.org/2000/svg">
|
||||
<path d="m0 0a100 50 0 0 0 100 50" fill="none" stroke="#000"/>
|
||||
<path d="m0 0a100 50 0 0 0100 50" fill="none" stroke="green"/>
|
||||
<path d="m0 0a100 50 0 00 100 50" fill="none" stroke="blue"/>
|
||||
<path d="m0 0a100 50 0 00100 50" fill="none" stroke="red"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 370 B |
Loading…
Add table
Add a link
Reference in a new issue