diff --git a/desktop_version/CONTRIBUTORS.txt b/desktop_version/CONTRIBUTORS.txt index 149f6fa6..46631819 100644 --- a/desktop_version/CONTRIBUTORS.txt +++ b/desktop_version/CONTRIBUTORS.txt @@ -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) diff --git a/desktop_version/src/Credits.h b/desktop_version/src/Credits.h index 475f4a84..938e8662 100644 --- a/desktop_version/src/Credits.h +++ b/desktop_version/src/Credits.h @@ -93,6 +93,7 @@ static const char* githubfriends[] = { "Allison Fleischer", "Daniel Lee", "Fredrik Ljungdahl", + "MAO3J1m0Op", "Nichole Mattera", "Matt Penny", "Tynan Richards", diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index 991e34da..ebddba2a 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -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" );