r5833 - trunk/eda/boom
werner at docs.openmoko.org
werner at docs.openmoko.org
Sun Feb 7 17:31:52 CET 2010
Author: werner
Date: 2010-02-07 17:31:51 +0100 (Sun, 07 Feb 2010)
New Revision: 5833
Modified:
trunk/eda/boom/prettyord
Log:
The title line still wrapped, for no good reason.
- eda/boom/prettyord: strip trailing spaces from output
Modified: trunk/eda/boom/prettyord
===================================================================
--- trunk/eda/boom/prettyord 2010-02-07 16:27:33 UTC (rev 5832)
+++ trunk/eda/boom/prettyord 2010-02-07 16:31:51 UTC (rev 5833)
@@ -49,12 +49,14 @@
}
for ($i = 0; $i <= $#{ $out[0] }; $i++) {
+ $l = "";
for ($j = 0; $j != 6; $j++) {
my $s = $out[$j][$i];;
- print $s if $j == 2 || $j == 3 || $j == 4;
- print " " x ($max[$j]-length $s);
- print $s if $j == 0 || $j == 1 || $j == 5;
- print " " unless $j == 5;
+ $l .= $s if $j == 2 || $j == 3 || $j == 4;
+ $l .= " " x ($max[$j]-length $s);
+ $l .= $s if $j == 0 || $j == 1 || $j == 5;
+ $l .= " " unless $j == 5;
}
- print "\n";
+ $l =~ s/\s*$//;
+ print "$l\n";
}
More information about the commitlog
mailing list