From 8c3aa95224b7bf1b31eab2d79dcb5308b62a522e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Reh=C3=A1k?= Date: Wed, 13 Apr 2022 04:02:16 +0100 Subject: [PATCH] CmdInfo: Fix leading spaces before urgency value The minimal field width is set to 4, so if the value is shorter, it gets prefixed with spaces, breaking the flow of the table. --- src/commands/CmdInfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/commands/CmdInfo.cpp b/src/commands/CmdInfo.cpp index f413d311a..847b04890 100644 --- a/src/commands/CmdInfo.cpp +++ b/src/commands/CmdInfo.cpp @@ -37,6 +37,7 @@ #include #include #include +#include //////////////////////////////////////////////////////////////////////////////// CmdInfo::CmdInfo () @@ -373,7 +374,7 @@ int CmdInfo::execute (std::string& output) // Task::urgency row = view.addRow (); view.set (row, 0, "Urgency"); - view.set (row, 1, format (task.urgency (), 4, 4)); + view.set (row, 1, Lexer::trimLeft (format (task.urgency (), 4, 4))); // Show any UDAs auto all = task.all ();