don't close polylines

This commit is contained in:
Laura Klünder 2017-10-20 01:59:31 +02:00
parent fbd9b20dfd
commit ba068f5c93

View file

@ -141,7 +141,7 @@ class SVGImage:
+ '"/>')
if isinstance(geom, LineString):
return ('<path d="' +
' '.join('M %.1f %.1f L %s z' % (geom.coords[0][0], geom.coords[0][1],
' '.join('M %.1f %.1f L %s' % (geom.coords[0][0], geom.coords[0][1],
' '.join(('%.1f %.1f' % (c[0], c[1])) for c in geom.coords[1:])))
+ '"/>')
try: