1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-27 02:20:05 +00:00

Projucer: Made the --tidy-whitespace command a bit more robust

This commit is contained in:
ed 2020-04-30 16:49:00 +01:00
parent 5355448507
commit c3825b5aa1

View file

@ -334,8 +334,14 @@ namespace
{
auto content = file.loadFileAsString();
if (content.contains ("%""%") && content.contains ("//["))
return; // ignore projucer GUI template files
auto isProjucerTemplateFile = [file, content]
{
return file.getFullPathName().contains ("Templates")
&& content.contains ("%""%") && content.contains ("//[");
}();
if (isProjucerTemplateFile)
return;
StringArray lines;
lines.addLines (content);
@ -409,7 +415,7 @@ namespace
files.add (target);
for (int i = 0; i < files.size(); ++i)
cleanWhitespace (files.getReference(i), options);
cleanWhitespace (files.getReference (i), options);
}
}