From: paul Date: Wed, 18 Apr 2018 14:33:28 +0000 (+0000) Subject: reenable clickable email address X-Git-Url: https://git.plutz.net/?a=commitdiff_plain;h=15013eb0790a7935dc28b8ace6d5001122e400f1;p=lobster reenable clickable email address svn path=/trunk/; revision=163 --- diff --git a/templates/view_card.sh b/templates/view_card.sh index 6d23a76..13dbab7 100755 --- a/templates/view_card.sh +++ b/templates/view_card.sh @@ -20,9 +20,18 @@ list_items(){ [ -n "${values[$item]+x}" ] && \ printf '

%s

\n' "$(l10n $item)" for n in "$item" "$item"{0..100}; do - [ -z "${values[$n]+x}" ] && break \ - || printf '%s\n' \ - "$item" "$(htmlsafe ${values[$n]})" + if [ -z "${values[$n]+x}" ]; then + break + else case "$item" in + EMAIL) + printf '%s\n' \ + "$(attribsafe "${values[$n]}")" "$(htmlsafe "${values[$n]}")" + ;; + *) + printf '%s\n' \ + "$item" "$(htmlsafe ${values[$n]})" + ;; + esac; fi done }