1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +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 9a4ec01053
commit 15b0db5f01

View file

@ -346,8 +346,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);
@ -421,7 +427,7 @@ namespace
files.add (target);
for (int i = 0; i < files.size(); ++i)
cleanWhitespace (files.getReference(i), options);
cleanWhitespace (files.getReference (i), options);
}
}