projects
/
platform
/
upstream
/
perl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68bd686
)
mktables: Don't output trailing tabs in tables
author
Karl Williamson
<public@khwilliamson.com>
Tue, 29 Oct 2013 01:49:55 +0000
(19:49 -0600)
committer
Karl 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
patch
|
blob
|
history
diff --git
a/lib/unicore/mktables
b/lib/unicore/mktables
index
0dd50ca
..
dcdb99b
100644
(file)
--- a/
lib/unicore/mktables
+++ b/
lib/unicore/mktables
@@
-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";
}
}
}