mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
CmdUDAs: Table headers consistent
This commit is contained in:
parent
0cf0f1ce3c
commit
97612b892a
1 changed files with 2 additions and 12 deletions
|
@ -92,12 +92,7 @@ int CmdUDAs::execute (std::string& output)
|
||||||
table.add (STRING_COLUMN_LABEL_VALUES);
|
table.add (STRING_COLUMN_LABEL_VALUES);
|
||||||
table.add (STRING_COLUMN_LABEL_DEFAULT);
|
table.add (STRING_COLUMN_LABEL_DEFAULT);
|
||||||
table.add (STRING_COLUMN_LABEL_UDACOUNT);
|
table.add (STRING_COLUMN_LABEL_UDACOUNT);
|
||||||
|
setHeaderUnderline (table);
|
||||||
if (context.color ())
|
|
||||||
{
|
|
||||||
Color label ("underline " + context.config.get ("color.label"));
|
|
||||||
table.colorHeader (label);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (auto& uda : udas)
|
for (auto& uda : udas)
|
||||||
{
|
{
|
||||||
|
@ -154,12 +149,7 @@ int CmdUDAs::execute (std::string& output)
|
||||||
orphanTable.width (context.getWidth ());
|
orphanTable.width (context.getWidth ());
|
||||||
orphanTable.add (STRING_COLUMN_LABEL_ORPHAN);
|
orphanTable.add (STRING_COLUMN_LABEL_ORPHAN);
|
||||||
orphanTable.add (STRING_COLUMN_LABEL_UDACOUNT);
|
orphanTable.add (STRING_COLUMN_LABEL_UDACOUNT);
|
||||||
|
setHeaderUnderline (orphanTable);
|
||||||
if (context.color ())
|
|
||||||
{
|
|
||||||
Color label ("underline " + context.config.get ("color.label"));
|
|
||||||
orphanTable.colorHeader (label);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (auto& o : orphans)
|
for (auto& o : orphans)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue