mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-13 05:57:00 -04:00
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:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user