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:
parent
9a4ec01053
commit
15b0db5f01
1 changed files with 9 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue