Fix viewbox whitespace processing.

This fixes processing of files where viewbox has leading/trailing whitespace.

Signed-off-by: Alexey Ivanov <rbtz@ph34r.me>
This commit is contained in:
Alexey Ivanov 2022-04-01 16:46:54 -07:00
parent 0609c59676
commit 5bcaaa4fdb
No known key found for this signature in database
GPG key ID: 8B57EDD96606CE12
3 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg" width="123.456" height="654.321" viewBox=" 0 0 123.456 654.321 ">
</svg>

After

Width:  |  Height:  |  Size: 152 B