mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-02-04 00:05:31 +03:00
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.
This commit is contained in:
@@ -1881,9 +1881,9 @@ bool editorclass::load(std::string& _path)
|
|||||||
{
|
{
|
||||||
std::string& line = values[i];
|
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
|
//Add the script if we have a preceding header
|
||||||
script.customscripts.push_back(script_);
|
script.customscripts.push_back(script_);
|
||||||
@@ -1894,19 +1894,19 @@ bool editorclass::load(std::string& _path)
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(headerfound)
|
if (headerfound)
|
||||||
{
|
{
|
||||||
script_.contents.push_back(line);
|
script_.contents.push_back(line);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Add the last script
|
//Add the last script
|
||||||
if(headerfound)
|
if (headerfound)
|
||||||
{
|
{
|
||||||
//Add the script if we have a preceding header
|
//Add the script if we have a preceding header
|
||||||
script.customscripts.push_back(script_);
|
script.customscripts.push_back(script_);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gethooks();
|
gethooks();
|
||||||
|
|||||||
Reference in New Issue
Block a user