From d9aea24cfb43940fa4cca19e561a65a4f8357b49 Mon Sep 17 00:00:00 2001 From: Aman Sachan Date: Sun, 3 May 2026 01:18:55 +0000 Subject: [PATCH] fix: eliminate double space when priority is not set --- todoman/formatters.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}" )