From 8dd6afbdfc214b076c60f3fdc0e611a529f01240 Mon Sep 17 00:00:00 2001 From: Brett Parker Date: Sun, 22 Jan 2006 09:00:03 +0000 Subject: [PATCH 1/1] 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 --- bpgallery.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 } -- 2.39.5