- Add the configuration variable 'print.empty.columns'.
- If this variable is set to 'no', columns with all empty values are not
  printed. This variable defaults to 'yes' (thus nothing is changed
  by default).
- Updated taskrc.5.in to mention the new variable.
- Added unit tests.
This commit is contained in:
Scott Kostyshak 2012-12-30 20:09:32 -05:00 committed by Paul Beckingham
parent a7b20b7a4e
commit d7c225c87b
6 changed files with 92 additions and 4 deletions

View file

@ -85,7 +85,11 @@ void ColumnPriority::measure (Task& task, int& minimum, int& maximum)
{
std::string priority = task.get (_name);
minimum = maximum = 1;
if (priority == "")
minimum = maximum = 0;
else
minimum = maximum = 1;
if (_style == "long")
{
if (priority == "H") minimum = maximum = 4;