From 6e1dbfb16e3a013bd98a5a9ac348ba4eade4b7db Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 10 Nov 2008 09:53:49 -0500 Subject: [PATCH] - Now handles the configuration variable recognition of the new custom report variables. --- src/command.cpp | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/src/command.cpp b/src/command.cpp index 3308fcd59..fb97800d6 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -367,17 +367,18 @@ std::string handleVersion (Config& conf) std::vector unrecognized; foreach (i, all) { - if (recognized.find (*i) == std::string::npos) - { - // These are special configuration variables, because their name is - // dynamic. - if (i->find ("color.keyword.") == std::string::npos && - i->find ("color.project.") == std::string::npos && - i->find ("color.tag.") == std::string::npos) - { - unrecognized.push_back (*i); - } - } + if (recognized.find (*i) == std::string::npos) + { + // These are special configuration variables, because their name is + // dynamic. + if (i->find ("color.keyword.") == std::string::npos && + i->find ("color.project.") == std::string::npos && + i->find ("color.tag.") == std::string::npos && + i->find ("report.") == std::string::npos) + { + unrecognized.push_back (*i); + } + } } if (unrecognized.size ())