diff --git a/viewer.sh b/viewer.sh index c62ce79..2846137 100755 --- a/viewer.sh +++ b/viewer.sh @@ -15,6 +15,11 @@ view_content(){ local -n _REF="${1}" print_dashes; printf "\n" for i in "${!_REF[@]}"; do + [ "${i}" == "text" ] && { + printf "[%s] \t=\t" "${i}" + sed ':a;N;$!ba;s/\n/\\n/g' <<< "${_REF[${i}]}" + continue + } [ ! -z "${_REF[${i}]}" ] && printf "[%s] \t=\t%s\n" "${i}" "${_REF[${i}]}" done }