- Fixed bug #552, where 'rc.verbose=off' suppressed warnings (thanks to Peter
  De Poorter).
- Fixed bug #863, which suppressed report labels with rc.verbose=off (thanks to
  Michelle Crane).
This commit is contained in:
Paul Beckingham
2012-02-26 17:01:13 -05:00
parent 45dba8805c
commit 824cba7152
6 changed files with 101 additions and 26 deletions

View File

@@ -129,11 +129,12 @@ int CmdCustom::execute (std::string& output)
// How many lines taken up by table header?
// TODO Consider rc.verbose
int table_header;
if (context.color () && context.config.getBoolean ("fontunderline"))
table_header = 1; // Underlining doesn't use extra line.
else
table_header = 2; // Dashes use an extra line.
int table_header = 0;
if (context.verbose ("label"))
if (context.color () && context.config.getBoolean ("fontunderline"))
table_header = 1; // Underlining doesn't use extra line.
else
table_header = 2; // Dashes use an extra line.
// Report output can be limited by rows or lines.
int maxrows = 0;
@@ -141,15 +142,13 @@ int CmdCustom::execute (std::string& output)
getLimits (_keyword, maxrows, maxlines);
// Adjust for fluff in the output.
// TODO Consider rc.verbose
if (maxlines)
maxlines -= (context.verbose ("blank") ? 1 : 0)
+ table_header
+ context.footnotes.size ()
+ (context.verbose ("footnote") ? context.footnotes.size () : 0)
+ 1; // "X tasks shown ..."
// Render.
// TODO Consider rc.verbose
std::stringstream out;
if (filtered.size ())
{
@@ -174,7 +173,8 @@ int CmdCustom::execute (std::string& output)
out << ", "
<< format (STRING_CMD_CUSTOM_TRUNCATED, maxlines - table_header);
out << "\n";
if (context.verbose ("affected"))
out << "\n";
}
else
{