r5832 - trunk/eda/boom

werner at docs.openmoko.org werner at docs.openmoko.org
Sun Feb 7 17:27:33 CET 2010


Author: werner
Date: 2010-02-07 17:27:33 +0100 (Sun, 07 Feb 2010)
New Revision: 5832

Modified:
   trunk/eda/boom/prettyord
Log:
Make "make show-dk" look good again.

- eda/boom/prettyord: ignore the width of the last non-empty title field, so
  that we get a more compact table



Modified: trunk/eda/boom/prettyord
===================================================================
--- trunk/eda/boom/prettyord	2010-02-07 16:09:52 UTC (rev 5831)
+++ trunk/eda/boom/prettyord	2010-02-07 16:27:33 UTC (rev 5832)
@@ -32,9 +32,20 @@
 
 for (@out) {
     push(@max, 0);
+    if (length $_->[0]) {
+	$max[$last_pos] = $last_len if defined $last_pos;
+	$last_pos = $#max;
+	$last_len = length $_->[0];
+    }
+}
+$i = 0;
+for (@out) {
+    $first = 1;
     for (@{ $_ }) {
-	$max[$#max] = length $_ if length $_ > $max[$#max];
+	next if $first-- > 0;
+	$max[$i] = length $_ if length $_ > $max[$i];
     }
+    $i++;
 }
 
 for ($i = 0; $i <= $#{ $out[0] }; $i++) {




More information about the commitlog mailing list