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
This commit is contained in:
twanvl
2008-05-31 17:54:57 +00:00
parent 779a240e2f
commit 8309cd7890
+1 -1
View File
@@ -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);