summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorKaalleen <36401965+kaalleen@users.noreply.github.com>2025-04-02 17:00:08 +0200
committerGitHub <noreply@github.com>2025-04-02 17:00:08 +0200
commitf809fb52a696e619db32f71d56797573715b4e6a (patch)
treeddf5770da7b88eee13d3088ade87eb3644a66f87 /lib
parent2d18a061e3427aecb06506944f68539270f497e9 (diff)
batch lettering: skip empty text (#3623)
Diffstat (limited to 'lib')
-rw-r--r--lib/extensions/batch_lettering.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/extensions/batch_lettering.py b/lib/extensions/batch_lettering.py
index 31d24e5f..70beaaf7 100644
--- a/lib/extensions/batch_lettering.py
+++ b/lib/extensions/batch_lettering.py
@@ -135,6 +135,8 @@ class BatchLettering(InkstitchExtension):
path = tempfile.mkdtemp()
files = []
for i, text in enumerate(texts):
+ if not text:
+ continue
stitch_plan, lettering_group = self.generate_stitch_plan(text, text_positioning_path)
for file_format in file_formats:
files.append(self.generate_output_file(file_format, path, text, stitch_plan, i))