From 1694e680599f47f84bd3fb8ad515f27ce948e053 Mon Sep 17 00:00:00 2001 From: Leon Drexhage <115697959+drexhage@users.noreply.github.com> Date: Sun, 12 Nov 2023 14:33:30 +0100 Subject: [PATCH] fix line shape handling --- svg2tikz/tikz_export.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svg2tikz/tikz_export.py b/svg2tikz/tikz_export.py index 42211e6..c0342bb 100644 --- a/svg2tikz/tikz_export.py +++ b/svg2tikz/tikz_export.py @@ -1180,7 +1180,7 @@ def _handle_shape(self, node): p_b = self.convert_unit_coord(Vector2d(node.x2, node.y2)) # check for zero lenght line if not ((p_a[0] == p_b[0]) and (p_a[1] == p_b[1])): - return f"{self.coord_to_tz(p_a)} -- {self.coord_to_tz(p_b)}" + return f"{self.coord_to_tz(p_a)} -- {self.coord_to_tz(p_b)}", [] if node.TAG == "circle": center = self.convert_unit_coord(Vector2d(node.center.x, node.center.y))