From: Brett Parker Date: Sun, 22 Jan 2006 09:00:03 +0000 (+0000) Subject: Fixes XHTML Compliance X-Git-Tag: release-1.0.1~1 X-Git-Url: https://git.sommitrealweird.co.uk/bpgallery.git/commitdiff_plain/8dd6afbdfc214b076c60f3fdc0e611a529f01240?hp=415e75cecaa7cc34cb133085d07021e93ee345d5 Fixes XHTML Compliance Adds in a default Alt tag if it's missing git-archimport-id: arch@sommitrealweird.co.uk--2005-desktop/bpgallery--mainline--1.0--patch-10 --- diff --git a/bpgallery.sh b/bpgallery.sh index ba71cc7..f1dcee7 100755 --- a/bpgallery.sh +++ b/bpgallery.sh @@ -46,8 +46,13 @@ END declare -rf bpgallery_default_description function bpgallery_default_thumbsline() { +if [[ -z $caption ]]; then + caption_alt=Unknown +else + caption_alt=$caption +fi cat << END -
$caption
+
$caption_alt
$caption
END }