- 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:
Paul Beckingham 2010-10-16 10:36:28 -04:00
parent e9301257f8
commit 12146a6f01
2 changed files with 45 additions and 43 deletions

View file

@ -262,8 +262,8 @@ int handleProjects (std::string &outs)
table.addColumn ("Pri:M");
table.addColumn ("Pri:H");
if (context.config.getBoolean ("color") ||
context.config.getBoolean ("_forcecolor"))
if ((context.config.getBoolean ("color") || context.config.getBoolean ("_forcecolor")) &&
context.config.getBoolean ("fontunderline"))
{
table.setColumnUnderline (0);
table.setColumnUnderline (1);
@ -272,6 +272,8 @@ int handleProjects (std::string &outs)
table.setColumnUnderline (4);
table.setColumnUnderline (5);
}
else
table.setTableDashedUnderline ();
table.setColumnJustification (1, Table::right);
table.setColumnJustification (2, Table::right);