sc: distinguish linear splash damage
[sheet.git] / index.plp
index 53cec8954b6d1db8b3626ff9d8fc56c77cac3529..a8b3a8f78baa5a2788efd42b43ef8a4f007857b6 100644 (file)
--- a/index.plp
+++ b/index.plp
@@ -2,14 +2,13 @@
 
 Html({
        title => 'cheat sheets',
-       version => 'v1.6',
+       version => 'v1.7',
        description => [
                "Cheat sheets summarising various software programs and standards.",
        ],
        keywords => [qw'
                sheet cheat reference software overview summary help keyboard map unicode
        '],
-       stylesheet => [qw'light dark red'],
 });
 
 :>
@@ -25,7 +24,8 @@ but you're free to use, print, alter, and redistribute under the AGPL license.
 <:
 my @format = ('--date=short', "--pretty=%ad (%ar)\t%s");
 if (open my $log, '-|', git => 'log', -1, @format) {{
-       my $line = readline $log or next;
+       my $line = readline $log;
+       $line or next;  # explicitly ignore empty input
        my ($date, $subject) = split /[\t\n]/, $line;
        $date =~ s/ \K/<small>/ and $date .= '</small>';
        print "<p><strong>Last update</strong>: $date $subject</p>\n";