diff --git a/src/util/io/writer.cpp b/src/util/io/writer.cpp index 5ec8c428..58de7188 100644 --- a/src/util/io/writer.cpp +++ b/src/util/io/writer.cpp @@ -76,9 +76,9 @@ void Writer::handle(const String& value) { // write the line writeIndentation(); writeUTF8(stream, value.substr(start, end - start)); - stream.PutChar(_('\n')); // Skip \r and \n if (end == String::npos) break; + stream.PutChar(_('\n')); start = end + 1; if (start < size) { Char c1 = value.GetChar(start - 1);