1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02:00

Add space after lines terminated by a colon in scripts (#479)

This commit is contained in:
MAO3J1m0Op 2020-09-14 20:34:12 -04:00 committed by GitHub
parent dcf1a81e80
commit 03abe10f67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 1 deletions

View File

@ -14,6 +14,7 @@ Contributors
* Fredrik Ljungdahl (@FredrIQ)
* Nichole Mattera (@NicholeMattera)
* Matt Penny (@mwpenny)
* MAO3J1m0Op (@MAO3J1m0Op)
* Tynan Richards (@tzann)
* Elliott Saltar (@eboyblue3)
* Marvin Scholz (@ePirat)

View File

@ -93,6 +93,7 @@ static const char* githubfriends[] = {
"Allison Fleischer",
"Daniel Lee",
"Fredrik Ljungdahl",
"MAO3J1m0Op",
"Nichole Mattera",
"Matt Penny",
"Tynan Richards",

View File

@ -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" );