Commit 86711645 authored by Dylan Araps's avatar Dylan Araps

song: Fix issues with broken newlines

parent 8a96fd54
......@@ -2470,7 +2470,7 @@ get_song() {
*) mpc &>/dev/null && song="$(mpc -f '%artist%\n%album%\n%title%' current)" || return ;;
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.
artist="$(trim "$artist")"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment