From: Ian Jackson Date: Fri, 5 Feb 2016 18:20:48 +0000 (+0000) Subject: commitid.scad.pl: process spaces (!) X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=reprap-play.git;a=commitdiff_plain;h=fd596c6735615d190140543feced19f58be2b906 commitid.scad.pl: process spaces (!) --- 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;