From 4f524e65c462b02d6bdff9ab91775227cb70ebba Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 29 Dec 2009 09:31:05 +0100 Subject: Only write
css attributes if no custom CSS is used --- bin/gen-xhtml-thumbnails | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/bin/gen-xhtml-thumbnails b/bin/gen-xhtml-thumbnails index db9a43c..b682161 100755 --- a/bin/gen-xhtml-thumbnails +++ b/bin/gen-xhtml-thumbnails @@ -81,11 +81,17 @@ foreach my $file (sort(@files)) { my $image = Image::Imlib2->load($file); my $thumb; - printf {$index} ( - '
', - THUMB_MAX_DIM * 1.1, - THUMB_MAX_DIM * 1.1, - ); + if (defined($css_source)) { + print {$index} '
'; + } + else { + printf {$index} ( + '
', + THUMB_MAX_DIM * 1.1, + THUMB_MAX_DIM * 1.1, + ); + } + print {$index} "\"$file\"
\n"; print_progress; $number++; -- cgit v1.2.3