mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Add space after lines terminated by a colon in scripts (#479)
This commit is contained in:
@@ -93,6 +93,7 @@ static const char* githubfriends[] = {
|
||||
"Allison Fleischer",
|
||||
"Daniel Lee",
|
||||
"Fredrik Ljungdahl",
|
||||
"MAO3J1m0Op",
|
||||
"Nichole Mattera",
|
||||
"Matt Penny",
|
||||
"Tynan Richards",
|
||||
|
||||
@@ -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