From 37e01869f108f394ed2d93590b4a51b1547c8cb4 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 11 Jul 2010 12:47:03 +0200 Subject: Fix newline bug, make image name clickable --- bin/gen-xhtml-thumbnails | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/gen-xhtml-thumbnails b/bin/gen-xhtml-thumbnails index bb9cd12..d93ac3e 100755 --- a/bin/gen-xhtml-thumbnails +++ b/bin/gen-xhtml-thumbnails @@ -103,7 +103,20 @@ foreach my $file (sort { lc($a) cmp lc($b) } @files) { print {$index} "\"$file\"\n"; if ($thumb_show_names) { - print {$index} "\n${file}"; + print {$index} "
\n"; + + if ($css_source) { + print {$index} + "${file}"; + } + else { + printf {$index} ( + '%s', + 'text-decoration: none;', + $file, + $file, + ); + } } print {$index} "\n"; -- cgit v1.2.3