- ::unsweetenTags no longer clobbers non-FILTER args.
This commit is contained in:
Paul Beckingham 2014-10-19 18:18:03 -04:00
parent cd8f7ddac4
commit f862ad15e6

View file

@ -505,6 +505,8 @@ void CLI::unsweetenTags ()
std::vector <A> reconstructed;
std::vector <A>::iterator a;
for (a = _args.begin (); a != _args.end (); ++a)
{
if (a->hasTag ("FILTER"))
{
Nibbler n (a->attribute ("raw"));
std::string tag;
@ -533,6 +535,9 @@ void CLI::unsweetenTags ()
else
reconstructed.push_back (*a);
}
else
reconstructed.push_back (*a);
}
_args = reconstructed;
}