]> git.sesse.net Git - webpdf/commitdiff
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 e668edfb799a4ab85a41a10dd19661e2531646b5..58e8a2146a0a487e18bb25192497e73e672435b2 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);