summaryrefslogtreecommitdiff
path: root/lib/svg
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2024-07-14 15:40:16 +0200
committerGitHub <noreply@github.com>2024-07-14 15:40:16 +0200
commit6a39662fd15a36a656ad1cf5779c865890d789b3 (patch)
tree5346c66175204660d74100630d58e83d751eeb70 /lib/svg
parent2ad75356ddeeaa6d87c10289479e90d50f4a378b (diff)
Command translations (#3075)
* command translations * windows: do not unescape
Diffstat (limited to 'lib/svg')
-rw-r--r--lib/svg/rendering.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/svg/rendering.py b/lib/svg/rendering.py
index 4f0ec154..735e00e7 100644
--- a/lib/svg/rendering.py
+++ b/lib/svg/rendering.py
@@ -234,8 +234,8 @@ def render_stitch_plan(svg, stitch_plan, realistic=False, visual_commands=True,
for i, color_block in enumerate(stitch_plan):
group = inkex.Group(attrib={
- 'id': '__color_block_%d__' % i,
- INKSCAPE_LABEL: "color block %d" % (i + 1)
+ 'id': f'__color_block_{i}__',
+ INKSCAPE_LABEL: f"color block {(i + 1)}"
})
layer.append(group)
if realistic: