From 6a39662fd15a36a656ad1cf5779c865890d789b3 Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Sun, 14 Jul 2024 15:40:16 +0200 Subject: Command translations (#3075) * command translations * windows: do not unescape --- lib/extensions/input.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lib/extensions/input.py') diff --git a/lib/extensions/input.py b/lib/extensions/input.py index 3bcbb5a2..7e525438 100644 --- a/lib/extensions/input.py +++ b/lib/extensions/input.py @@ -4,6 +4,7 @@ # Licensed under the GNU GPL version 3.0 or later. See the file LICENSE for details. from html import unescape +from sys import platform from inkex import errormsg from lxml import etree @@ -21,4 +22,8 @@ class Input(object): errormsg(msg) exit(0) stitch_plan = generate_stitch_plan(embroidery_file) - print(unescape(etree.tostring(stitch_plan).decode('utf-8'))) + out = etree.tostring(stitch_plan).decode('utf-8') + if platform == "win32": + print(out) + else: + print(unescape(out)) -- cgit v1.2.3