mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-30 09:54:10 +03:00
Add space after lines terminated by a colon in scripts (#479)
This commit is contained in:
@@ -2155,7 +2155,15 @@ bool editorclass::save(std::string& _path)
|
||||
scriptString += script_.name + ":|";
|
||||
for (size_t i = 0; i < script_.contents.size(); i++)
|
||||
{
|
||||
scriptString += script_.contents[i] + "|";
|
||||
scriptString += script_.contents[i];
|
||||
|
||||
// Inserts a space if the line ends with a :
|
||||
if (script_.contents[i].length() && *script_.contents[i].rbegin() == ':')
|
||||
{
|
||||
scriptString += " ";
|
||||
}
|
||||
|
||||
scriptString += "|";
|
||||
}
|
||||
}
|
||||
msg = doc.NewElement( "script" );
|
||||
|
||||
Reference in New Issue
Block a user