From 645c6f6bbe1b4664df436307f6636738511bae94 Mon Sep 17 00:00:00 2001 From: dinkypumpkin Date: Thu, 21 May 2020 13:23:42 +0100 Subject: [PATCH] don't normalise line endings in lyrics and long description --- src/parsley.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parsley.cpp b/src/parsley.cpp index 790502d..068136d 100644 --- a/src/parsley.cpp +++ b/src/parsley.cpp @@ -2167,10 +2167,12 @@ void APar_MetaData_atomLyrics_Set(const char* lyricsPath) { while (remaining && (sol = fgets(dest, remaining + 1, lyrics_file))) { size_t len = strlen(sol); //NUL bytes in the file will cause parts of the text to be skipped //normalize different EOL styles to carriage returns + /* if (sol[len-1] == '\n') { if (sol[len-2] == '\r') sol[--len] = '\0'; else sol[len-1] = '\r'; } + */ remaining -= len; dest += len; } @@ -2206,10 +2208,12 @@ void APar_MetaData_atomLongdesc_Set(const char* longdescPath) { while (remaining && (sol = fgets(dest, remaining + 1, longdesc_file))) { size_t len = strlen(sol); //NUL bytes in the file will cause parts of the text to be skipped //normalize different EOL styles to carriage returns + /* if (sol[len-1] == '\n') { if (sol[len-2] == '\r') sol[--len] = '\0'; else sol[len-1] = '\r'; } + */ remaining -= len; dest += len; }