mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-29 17:07:19 +02:00
Info: Don't print an urgency detail table is the value is zero
This commit is contained in:
parent
f9c99624b2
commit
3f457dc744
1 changed files with 86 additions and 83 deletions
|
@ -391,8 +391,10 @@ int CmdInfo::execute (std::string& output)
|
|||
}
|
||||
}
|
||||
|
||||
// Create a second table, containing urgency details.
|
||||
// Create a second table, containing urgency details, if necessary.
|
||||
ViewText urgencyDetails;
|
||||
if (task->urgency () > 0.0)
|
||||
{
|
||||
if (context.color ())
|
||||
{
|
||||
Color alternate (context.config.get ("color.alternate"));
|
||||
|
@ -488,6 +490,7 @@ int CmdInfo::execute (std::string& output)
|
|||
urgencyDetails.set (row, 5, rightJustify ("------", 6));
|
||||
row = urgencyDetails.addRow ();
|
||||
urgencyDetails.set (row, 5, rightJustify (format (task->urgency (), 4, 4), 6));
|
||||
}
|
||||
|
||||
// Create a third table, containing undo log change details.
|
||||
ViewText journal;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue