mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-22 17:49:43 +01:00
Remove superfluous whitespace in entity XML data in level files (#119)
An earlier change caused TinyXml to prettyprint specifically the contents of entities (script names and roomtext) a bit more than before in level files, and added an unusually high amount of whitespace (particularly, it added an empty line to every entity). This happens because, for some reason, an empty string is explicitly being added when creating an entity XML element. The line is so mysterious it feels like it probably somehow solved a nasty bug long ago and shouldn't be touched, but it was probably just a mistake, and with all that whitespace it doesn't look good.
This commit is contained in:
parent
9cf5112f0d
commit
3dee27db7b
1 changed files with 0 additions and 1 deletions
|
@ -2070,7 +2070,6 @@ void editorclass::save(std::string& _path)
|
||||||
edentityElement->SetAttribute( "p5", edentity[i].p5);
|
edentityElement->SetAttribute( "p5", edentity[i].p5);
|
||||||
edentityElement->SetAttribute( "p6", edentity[i].p6);
|
edentityElement->SetAttribute( "p6", edentity[i].p6);
|
||||||
edentityElement->LinkEndChild( new TiXmlText( edentity[i].scriptname.c_str() )) ;
|
edentityElement->LinkEndChild( new TiXmlText( edentity[i].scriptname.c_str() )) ;
|
||||||
edentityElement->LinkEndChild( new TiXmlText( "" )) ;
|
|
||||||
msg->LinkEndChild( edentityElement );
|
msg->LinkEndChild( edentityElement );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue