From f966999bc5fab2a43acdee62774d11d5975d67c3 Mon Sep 17 00:00:00 2001 From: Andy Port Date: Mon, 28 May 2018 19:48:48 -0700 Subject: [PATCH] minor docstring improvements --- svgpathtools/svg2paths.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/svgpathtools/svg2paths.py b/svgpathtools/svg2paths.py index 179a0f2..f9b0cc4 100644 --- a/svgpathtools/svg2paths.py +++ b/svgpathtools/svg2paths.py @@ -45,8 +45,8 @@ def ellipse2pathd(ellipse): def polyline2pathd(polyline_d, is_polygon=False): - """converts the string from a polyline points-attribute to a string for a - Path object d-attribute""" + """converts the string from a polyline points-attribute to a string + for a Path object d-attribute""" points = COORD_PAIR_TMPLT.findall(polyline_d) closed = (float(points[0][0]) == float(points[-1][0]) and float(points[0][1]) == float(points[-1][1])) @@ -67,7 +67,8 @@ def polygon2pathd(polyline_d): """converts the string from a polygon points-attribute to a string for a Path object d-attribute. Note: For a polygon made from n points, the resulting path will be - composed of n lines (even if some of these lines have length zero).""" + composed of n lines (even if some of these lines have length zero). + """ return polyline2pathd(polyline_d, True)