From 9c8388a0baa1213b425621a9aaf7337421e80c51 Mon Sep 17 00:00:00 2001 From: seongbae15 Date: Tue, 4 Feb 2025 02:47:21 +0900 Subject: [PATCH] Fix: Correct swapped width and height attributes in SVG tag --- svglib/svg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svglib/svg.py b/svglib/svg.py index ec45a26..e53e102 100644 --- a/svglib/svg.py +++ b/svglib/svg.py @@ -230,7 +230,7 @@ def to_str(self, fill=False, with_points=False, with_handles=False, with_bboxes= viz_elements = self._get_viz_elements(with_points, with_handles, with_bboxes, color_firstlast, with_moves) newline = "\n" return ( - f'' + f'' f'{self._markers() if with_markers else ""}' f'{newline.join(svg_path_group.to_str(fill=fill, with_markers=with_markers) for svg_path_group in [*self.svg_path_groups, *viz_elements])}' '')