From 15013eb0790a7935dc28b8ace6d5001122e400f1 Mon Sep 17 00:00:00 2001 From: paul Date: Wed, 18 Apr 2018 14:33:28 +0000 Subject: [PATCH] reenable clickable email address svn path=/trunk/; revision=163 --- templates/view_card.sh | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) 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 } -- 2.39.2