The new lines are unfortunately necessary since waybar uses GTK CSS, and GTK CSS doesn't support modern CSS features like vertical text.