From 91072676de28ff2d9d1ec6dec658e4ca4a46d1ff Mon Sep 17 00:00:00 2001 From: ailurux Date: Sun, 27 Apr 2025 11:46:11 +1000 Subject: Fix for Windows newlines in playlists --- src/tangara/audio/playlist.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/tangara/audio/playlist.cpp b/src/tangara/audio/playlist.cpp index f0876d4e..6ed5f162 100644 --- a/src/tangara/audio/playlist.cpp +++ b/src/tangara/audio/playlist.cpp @@ -305,6 +305,9 @@ auto Playlist::nextItem(std::span buf) if (line.ends_with('\n')) { line = line.substr(0, line.size() - 1); } + if (line.ends_with('\r')) { + line = line.substr(0, line.size() - 1); + } return line; } -- cgit v1.2.3