From 4f224e1657579d9806ad5034a8883c8535a4d5ec Mon Sep 17 00:00:00 2001 From: Misa Date: Fri, 12 Feb 2021 16:25:32 -0800 Subject: [PATCH] Clean up whitespace in script XML parsing code There is now a space between all 'if's and their opening parentheses. I've also cleaned up the blank line spacing so the code looks better. --- desktop_version/src/editor.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/desktop_version/src/editor.cpp b/desktop_version/src/editor.cpp index 1c0f7469..9d007d05 100644 --- a/desktop_version/src/editor.cpp +++ b/desktop_version/src/editor.cpp @@ -1881,9 +1881,9 @@ bool editorclass::load(std::string& _path) { std::string& line = values[i]; - if(line.length() && line[line.length() - 1] == ':') + if (line.length() && line[line.length() - 1] == ':') { - if(headerfound) + if (headerfound) { //Add the script if we have a preceding header script.customscripts.push_back(script_); @@ -1894,19 +1894,19 @@ bool editorclass::load(std::string& _path) continue; } - if(headerfound) + if (headerfound) { script_.contents.push_back(line); } } + //Add the last script - if(headerfound) + if (headerfound) { //Add the script if we have a preceding header script.customscripts.push_back(script_); } } - } gethooks();