From 2f4e0d9e17c623fde52c494072b78dacca63d653 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 22 Jan 2011 23:20:26 -0500 Subject: [PATCH] Bug #654 - By misplacing a } I broke the info command for tasks without undo history, which subsequently broke 28 unit tests. --- src/report.cpp | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/src/report.cpp b/src/report.cpp index 05acf1183..053a4e5ed 100644 --- a/src/report.cpp +++ b/src/report.cpp @@ -749,7 +749,6 @@ int handleInfo (std::string& outs) if (total_time < 0) total_time += Date ().toEpoch (); - // print total active time if (total_time > 0) { @@ -760,15 +759,15 @@ int handleInfo (std::string& outs) if (context.config.getBoolean ("color") || context.config.getBoolean ("_forcecolor")) journal.setCellColor (row, 1, Color ("bold")); } - - out << optionalBlankLine () - << table.render () - << "\n"; - - if (journal.rowCount () > 0) - out << journal.render () - << "\n"; } + + out << optionalBlankLine () + << table.render () + << "\n"; + + if (journal.rowCount () > 0) + out << journal.render () + << "\n"; } if (! tasks.size ())