chiark / gitweb /
Some stylistic fixups; get rid of warning when processing pre-publish-rejection log...
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 4 Mar 2010 16:13:34 +0000 (16:13 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 4 Mar 2010 16:13:34 +0000 (16:13 +0000)
xlog/bin/report

index 7d0bb50e5399c81d0e68e8d62bffc70338b3ad31..d25071787b7f4be2d53ff78865d6518fb05e5973 100755 (executable)
@@ -21,6 +21,7 @@ sub processlog ($$) {
     while (<F>) {
        chomp;
        @s= split /\t/;
+       push @s, '' if @s<=6;
         $s[0]= strftime "%Y-%m-%d %H:%M:%S %Z", localtime $s[0];
        &$processline();
        $oddeven =~ y/oe/eo/;
@@ -55,7 +56,7 @@ sub processline_print () {
 
     print "<tr class='$oddeven'><td>$sp[0]</td>";
     print "<td class='ref'>$sp[1] $sp[2]</td>";
-    print "<td>$sp[3]</td><td>$sp[4]</td><td>$sp[5]</td></tr>\n";
+    print td([@sp[3..5]]),"</tr>\n";
 }
 
 sub processline_print_ifsingle () {
@@ -105,8 +106,8 @@ if ($pi =~ m,^/message/(\d+)/(.*)$,) {
 }
 
 my $css=<<EOJ;
-span.hole:before {content: " "; }
-td.ref {font-size: 0.75em; }
+span.hole:before { content: " "; }
+td.ref { font-size: 0.75em; }
 tr.o { background: #ddddff; }
 EOJ