]> granicus.if.org Git - pdns/commitdiff
fix table layout
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 3 Sep 2013 13:25:00 +0000 (15:25 +0200)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Tue, 3 Sep 2013 13:25:09 +0000 (15:25 +0200)
regression-tests/bulktest-report.py

index af2bf7a29a46409bc83f8c6c54579a41522aa33b..02f2b1f14ed42d633dba34e9ff8a95032b1a9b53 100755 (executable)
@@ -25,7 +25,7 @@ selected.sort()
 
 names.discard('tag')
 
-fmt=''.join('%%%ds' % (i+4) for i in [3]+map(len, sorted(names)))
+fmt=''.join('%%%ds' % max(15, i+4) for i in [3]+map(len, sorted(names)))
 print fmt % tuple(['tag']+sorted(names))
 for tag, stats in selected:
-       print fmt % tuple(['tag'] + [stats.get(s) for s in sorted(names)])
+       print fmt % tuple([tag] + [stats.get(s) for s in sorted(names)])