Fix orphan '-inkscape-' in the style attribute

This commit is contained in:
Sergei Eremenko 2021-07-01 20:02:09 +03:00
parent 042556c2b8
commit 67b70dc0f4
No known key found for this signature in database
GPG key ID: AB6D54C1C16D2507

View file

@ -28,6 +28,11 @@
# add a trailing semicolon for secure matching
s/style="([^"]+[^;])"/style="\1;"/gI
# delete Inkscape properties
/-inkscape-/ {
s/-inkscape-[^;"]+;//gI
}
# delete properties with default values
s/alignment-baseline:auto;//gI
s/backface-visibility:visible;//gI
@ -137,11 +142,6 @@
s/paint-order:stroke markers fill;//gI
s/paint-order:markers stroke fill;//gI
# delete Inkscape properties
/-inkscape-/ {
s/-inkscape-[^;"]+;//gI
}
# delete 'fill- *' properties if fill equal none
/fill[:=]"?none/ {
s/fill-rule:[^;"]+;//gI