1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-26 14:38:30 +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) * 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" );