fixed newlines screwing with the viewer
This commit is contained in:
parent
68d9fbae8a
commit
24c05e35dc
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue