mktables: Don't output trailing tabs in tables
authorKarl Williamson <public@khwilliamson.com>
Tue, 29 Oct 2013 01:49:55 +0000 (19:49 -0600)
committerKarl Williamson <public@khwilliamson.com>
Tue, 31 Dec 2013 15:27:16 +0000 (08:27 -0700)
This makes sure that the tabs aren't output unless there is a following
non-null value, saving some disk space

lib/unicore/mktables

index 0dd50ca..dcdb99b 100644 (file)
@@ -5762,8 +5762,9 @@ END
                                                  $i,            $value;
                                 }
                                 else {
-                                    push @OUT, sprintf "$hex_format\t\t%s\n",
-                                                        $i, $value;
+                                    push @OUT, sprintf $hex_format, $i;
+                                    $OUT[-1] .= "\t\t$value" if $value ne "";
+                                    $OUT[-1] .= "\n";
                                 }
                             }
                         }