xq icon indicating copy to clipboard operation
xq copied to clipboard

format svg error

Open QiWei opened this issue 1 year ago • 1 comments

svg file

<?xml version="1.0"?>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" height="297mm" width="210mm">
  <g stroke="#2f4f4f" stroke-linecap="round" stroke-linejoin="round">
    <g fill="#fff">
    </g>
  </g>
</svg>

xq cannot handle nested g elements and when "xmlns:svg" exists, causing "" to become "<svg:svg".

<?xml version="1.0"?>
<svg:svg xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg" height="297mm" width="210mm">
  <svg:g stroke="#2f4f4f" stroke-linecap="round" stroke-linejoin="round">
    <svg:g fill="#fff"/>/>
</svg:svg>

QiWei avatar Feb 26 '24 02:02 QiWei

Hmm, very interesting, thank you for your report!

sibprogrammer avatar Feb 26 '24 08:02 sibprogrammer