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:
parent
dcf1a81e80
commit
03abe10f67
3 changed files with 11 additions and 1 deletions
|
@ -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)
|
||||||
|
|
|
@ -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",
|
||||||
|
|
|
@ -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" );
|
||||||
|
|
Loading…
Reference in a new issue