[test/make-html.pl] Don't include links to non-existent images.

Some tests do not generate output images, so do not insert a link if we
don't have an image.
This commit is contained in:
Chris Wilson 2008-08-18 16:08:16 +01:00
parent 17fbb652b1
commit c56385eacc

View file

@ -199,6 +199,8 @@ printl '</tr>';
sub img_for {
my ($fn, $withlink) = @_;
return "" unless defined $fn;
if ($config_show_inline) {
$fn = file_to_data("image/png", $fn);
# never return links, people can just right-click view image,