song: Fix issues with broken newlines
This commit is contained in:
parent
8a96fd545d
commit
86711645a0
1 changed files with 1 additions and 1 deletions
2
neofetch
2
neofetch
|
@ -2470,7 +2470,7 @@ get_song() {
|
||||||
*) mpc &>/dev/null && song="$(mpc -f '%artist%\n%album%\n%title%' current)" || return ;;
|
*) mpc &>/dev/null && song="$(mpc -f '%artist%\n%album%\n%title%' current)" || return ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
IFS=$'\n' read -d "" -r artist album title <<< "$song"
|
IFS=$'\n' read -d "" -r artist album title <<< "${song//'\n'/$'\n'}"
|
||||||
|
|
||||||
# Make sure empty tags are truly empty.
|
# Make sure empty tags are truly empty.
|
||||||
artist="$(trim "$artist")"
|
artist="$(trim "$artist")"
|
||||||
|
|
Loading…
Reference in a new issue