- Minor tweaks.
This commit is contained in:
Paul Beckingham 2014-10-12 23:48:55 -04:00
parent 2c7013cc1c
commit ca14657f0c
2 changed files with 5 additions and 4 deletions

View file

@ -232,7 +232,8 @@ static void colorizeUDA (Task& task, const std::string& rule, const Color& base,
if (task.has (rule.substr (10))) if (task.has (rule.substr (10)))
c.blend (base); c.blend (base);
} }
else { else
{
const std::string uda = rule.substr (10, pos - 10); const std::string uda = rule.substr (10, pos - 10);
const std::string val = rule.substr (pos + 1); const std::string val = rule.substr (pos + 1);
if (task.get (uda) == val) if (task.get (uda) == val)

View file

@ -27,7 +27,7 @@
use strict; use strict;
use warnings; use warnings;
use Test::More tests => 2; use Test::More tests => 3;
# Ensure environment has no influence. # Ensure environment has no influence.
delete $ENV{'TASKDATA'}; delete $ENV{'TASKDATA'};