From 8309cd78900437677e1f5935517ac7fae470ca42 Mon Sep 17 00:00:00 2001 From: twanvl Date: Sat, 31 May 2008 17:54:57 +0000 Subject: [PATCH] Don't put extra newlines after multiline strings git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@910 0fc631ac-6414-0410-93d0-97cfa31319b6 --- src/util/io/writer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);