-
Notifications
You must be signed in to change notification settings - Fork 57
Closed
Labels
Description
Describe the bug
In taskwarrior configuration file, boolean truthness values can be represented by the following values, case insensitive (from taskrc manpage):
Note that Taskwarrior is flexible about the values used to represent Boolean items. You can use "on", "yes",
"y", "1" and "true". Anything else means "off".
vit only accepts yes (lowercase) to represent truth in print.empty.columns config variable.
To Reproduce
- Configure
print.empty.columnswith any of the above mentionned truthness values, case insensitive, except yes (attached test case uses True) - Display
nextreport - Compare with
task nextoutput
=> Columns with no data are not displayed
Expected behavior
Columns with no data are displayed.
Affected code
Lines 220 to 221 in 1e1d010
| def set_config_data(self): | |
| self.print_empty_columns = self.subtree('print.empty.columns') == 'yes' |
Something like
self.print_empty_columns = self.subtree('print.empty.columns').lower() in ['y', 'yes', 'on', 'true', '1']would fix this specific issue.
Test case
print-empty-columns.sh.txt
Reactions are currently unavailable