Commit 990173f8 authored by Bram Schoenmakers's avatar Bram Schoenmakers

Don't print colors codes when colors are turned off

parent d210e6a7
......@@ -193,9 +193,9 @@ class ListFormatParser(object):
# relative completion date
'X': lambda t: 'x ' + humanize_date(t.completion_date()) if t.is_completed() else '',
'z': color_block,
'z': lambda t: color_block if config().colors() else ' ',
'Z': lambda t: color_block(t, p_safe=False),
'Z': lambda t: color_block(t, p_safe=False) if config().colors() else ' ',
}
self.format_list = self._preprocess_format()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment