Forum Bugs

stroke-dasharray

ianmaclarty
Hello,

Prince doesn't dash the line in the following piece of SVG:

<svg width="400" height="250" xmlns="http://www.w3.org/2000/svg" version="1.1">
<g stroke-dasharray="2.000000000">
<line x1="0" y1="0" x2="100" y2="100" stroke="black" />
</g>
</svg>

However if you change the "2.000000000" to just "2", then it works.
According to the SVG spec stroke-dasharray accepts a list of lengths and lengths are allowed to have decimal points.

Ian.
mikeday
Hi Ian,

Thanks for reporting the issue, we'll take a look at it. :)

Michael
mikeday
The stroke-dasharray and stroke-dashoffset properties can now take decimal values in Prince 5.1 rev 7.