chiark / gitweb /
commitid.scad.pl: process spaces (!)
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 18:20:48 +0000 (18:20 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 5 Feb 2016 18:20:48 +0000 (18:20 +0000)
commitid.scad.pl

index f4a0d19388369df7704d179b813372a525628252..ab19bcaeb3ead658c6c71051c7dc529716a442ad 100755 (executable)
@@ -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;