diff options
| author | ailurux <ailuruxx@gmail.com> | 2025-04-27 11:46:11 +1000 |
|---|---|---|
| committer | ailurux <ailuruxx@gmail.com> | 2025-04-27 11:46:11 +1000 |
| commit | 91072676de28ff2d9d1ec6dec658e4ca4a46d1ff (patch) | |
| tree | 50398ffa40cf37b4a3f5ce76a814bf5a11f35513 /src | |
| parent | af72e15315ca0970e769410ef2bf4bac43e9bb7a (diff) | |
| download | tangara-fw-91072676de28ff2d9d1ec6dec658e4ca4a46d1ff.tar.gz | |
Fix for Windows newlines in playlists
Diffstat (limited to 'src')
| -rw-r--r-- | src/tangara/audio/playlist.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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<TCHAR> 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; } |
