Added ellipsis after truncated titles.
authorSteinar H. Gunderson <sesse@samfundet.no>
Tue, 9 Aug 2005 00:44:20 +0000 (00:44 +0000)
committerSteinar H. Gunderson <sesse@samfundet.no>
Tue, 9 Aug 2005 00:44:20 +0000 (00:44 +0000)
last.pl

diff --git a/last.pl b/last.pl
index e668edf..58e8a21 100755 (executable)
--- a/last.pl
+++ b/last.pl
@@ -48,7 +48,7 @@ for my $t (@thumbnails[0..$num_last-1]) {
        close DESC;
 
        if (length($desc) > 30) {
-               $desc = substr $desc, 0, 30;
+               $desc = substr($desc, 0, 30) . " ...";
        }
        $desc = HTML::Entities::encode_entities($desc);