Commit 076dbf54 authored by twanvl's avatar twanvl

Don't put extra newlines after multiline strings

parent 8558f31b
...@@ -76,9 +76,9 @@ void Writer::handle(const String& value) { ...@@ -76,9 +76,9 @@ void Writer::handle(const String& value) {
// write the line // write the line
writeIndentation(); writeIndentation();
writeUTF8(stream, value.substr(start, end - start)); writeUTF8(stream, value.substr(start, end - start));
stream.PutChar(_('\n'));
// Skip \r and \n // Skip \r and \n
if (end == String::npos) break; if (end == String::npos) break;
stream.PutChar(_('\n'));
start = end + 1; start = end + 1;
if (start < size) { if (start < size) {
Char c1 = value.GetChar(start - 1); Char c1 = value.GetChar(start - 1);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment