[ -n "${values[$item]+x}" ] && \
printf '<h3>%s</h3>\n' "$(l10n $item)"
for n in "$item" "$item"{0..100}; do
- [ -z "${values[$n]+x}" ] && break \
- || printf '<span class="item %s">%s</span>\n' \
- "$item" "$(htmlsafe ${values[$n]})"
+ if [ -z "${values[$n]+x}" ]; then
+ break
+ else case "$item" in
+ EMAIL)
+ printf '<a class="item EMAIL" href="mailto:%s">%s</a>\n' \
+ "$(attribsafe "${values[$n]}")" "$(htmlsafe "${values[$n]}")"
+ ;;
+ *)
+ printf '<span class="item %s">%s</span>\n' \
+ "$item" "$(htmlsafe ${values[$n]})"
+ ;;
+ esac; fi
done
}