browser: display 'js api' category as 'js'
authorMischa POSLAWSKY <perl@shiar.org>
Tue, 7 Dec 2010 21:05:48 +0000 (22:05 +0100)
committerMischa POSLAWSKY <perl@shiar.org>
Wed, 15 Dec 2010 21:40:44 +0000 (22:40 +0100)
Useless word causes line breaks if filtered.

browser.plp

index 9a865d4f0ff8a577b20c191af9604b08030c9fa3..258999e834364ce4cf4b4a07278fa1ff07d38783 100644 (file)
@@ -192,6 +192,7 @@ sub saytitlecol {
 
        for ($row->{categories}) {
                my $cell = $_ ? lc $_->[0] : '-';
 
        for ($row->{categories}) {
                my $cell = $_ ? lc $_->[0] : '-';
+               $cell =~ s/ api$//;  # trim unessential fluff in 'js api'
                printf '<th title="%s">%s', join(' + ', @$_), $cell;
        }
 
                printf '<th title="%s">%s', join(' + ', @$_), $cell;
        }