1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-12-23 01:59:43 +01: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) * Fredrik Ljungdahl (@FredrIQ)
* Nichole Mattera (@NicholeMattera) * Nichole Mattera (@NicholeMattera)
* Matt Penny (@mwpenny) * Matt Penny (@mwpenny)
* MAO3J1m0Op (@MAO3J1m0Op)
* Tynan Richards (@tzann) * Tynan Richards (@tzann)
* Elliott Saltar (@eboyblue3) * Elliott Saltar (@eboyblue3)
* Marvin Scholz (@ePirat) * Marvin Scholz (@ePirat)

View file

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

View file

@ -2155,7 +2155,15 @@ bool editorclass::save(std::string& _path)
scriptString += script_.name + ":|"; scriptString += script_.name + ":|";
for (size_t i = 0; i < script_.contents.size(); i++) 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" ); msg = doc.NewElement( "script" );