mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Bug
- Fixed underlining in projects report when color is off - the dashes were not being used. - Cleaned up formatting in main.h.
This commit is contained in:
parent
e9301257f8
commit
12146a6f01
2 changed files with 45 additions and 43 deletions
|
@ -262,8 +262,8 @@ int handleProjects (std::string &outs)
|
||||||
table.addColumn ("Pri:M");
|
table.addColumn ("Pri:M");
|
||||||
table.addColumn ("Pri:H");
|
table.addColumn ("Pri:H");
|
||||||
|
|
||||||
if (context.config.getBoolean ("color") ||
|
if ((context.config.getBoolean ("color") || context.config.getBoolean ("_forcecolor")) &&
|
||||||
context.config.getBoolean ("_forcecolor"))
|
context.config.getBoolean ("fontunderline"))
|
||||||
{
|
{
|
||||||
table.setColumnUnderline (0);
|
table.setColumnUnderline (0);
|
||||||
table.setColumnUnderline (1);
|
table.setColumnUnderline (1);
|
||||||
|
@ -272,6 +272,8 @@ int handleProjects (std::string &outs)
|
||||||
table.setColumnUnderline (4);
|
table.setColumnUnderline (4);
|
||||||
table.setColumnUnderline (5);
|
table.setColumnUnderline (5);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
table.setTableDashedUnderline ();
|
||||||
|
|
||||||
table.setColumnJustification (1, Table::right);
|
table.setColumnJustification (1, Table::right);
|
||||||
table.setColumnJustification (2, Table::right);
|
table.setColumnJustification (2, Table::right);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue