Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 9cf641a

Browse files
Fix rendering of Line to svg
The closing quote of the stroke attribute for the Line element had no space between it as the next element, stroke-width. This was causing the SVG to be malformed. This commit fixes the spacing between the stroke and stroke-width attributes when rendering a Line.
1 parent 884fc42 commit 9cf641a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/svgRenderer.coffee

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ defineSVGRenderer 'Line', (shape) ->
9595
<line x1='#{x1}' y1='#{y1}' x2='#{x2}' y2='#{y2}'
9696
#{dashString}
9797
stroke-linecap='#{shape.capStyle}'
98-
stroke='#{shape.color} 'stroke-width='#{shape.strokeWidth}' />
98+
stroke='#{shape.color}' stroke-width='#{shape.strokeWidth}' />
9999
#{capString}
100100
</g>
101101
"
@@ -178,4 +178,4 @@ defineSVGRenderer 'Text', (shape) ->
178178
"
179179

180180

181-
module.exports = {defineSVGRenderer, renderShapeToSVG}
181+
module.exports = {defineSVGRenderer, renderShapeToSVG}

0 commit comments

Comments
 (0)