From fd596c6735615d190140543feced19f58be2b906 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 5 Feb 2016 18:20:48 +0000 Subject: [PATCH] commitid.scad.pl: process spaces (!) --- commitid.scad.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commitid.scad.pl b/commitid.scad.pl index f4a0d19..ab19bca 100755 --- a/commitid.scad.pl +++ b/commitid.scad.pl @@ -148,9 +148,9 @@ sub gentextmodule ($@) { $y--; my $x = 0; foreach my $chr (split //, $line) { - next if $chr !~ m/\S/; p sprintf " translate([%d * 0.8, %d * 1.2]) %s();\n", - $x, $y, chrmodname $chr; + $x, $y, chrmodname $chr + if $chr =~ m/\S/; $x++; } $cols = $x if $x > $cols; -- 2.30.2