diff --git a/todoman/formatters.py b/todoman/formatters.py index 2424eef3..77261fca 100644 --- a/todoman/formatters.py +++ b/todoman/formatters.py @@ -157,10 +157,10 @@ def compact_multiple(self, todos: Iterable[Todo], hide_list: bool = False) -> st # TODO: add spaces on the left based on max todos" - # FIXME: double space when no priority # split into parts to satisfy linter line too long + priority_str = f"{priority} " if priority else "" table.append( - f"[{completed}] {todo.id} {priority} {due} " + f"[{completed}] {todo.id} {priority_str}{due} " f"{recurring}{summary}{categories}" )