From 1da111ad6e1bb651a244a6d3d44c528a0e3588e0 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Wed, 13 May 2009 23:59:22 -0400 Subject: [PATCH] Enhancement - info missing color - Fixed bug whereby the info report was not reporting fg and bg color attributes. --- src/report.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/report.cpp b/src/report.cpp index ceed687c0..9e419bfac 100644 --- a/src/report.cpp +++ b/src/report.cpp @@ -485,10 +485,12 @@ std::string handleInfo (TDB& tdb, T& task, Config& conf) table.addCell (row, 1, allTags); } + // uuid row = table.addRow (); table.addCell (row, 0, "UUID"); table.addCell (row, 1, refTask.getUUID ()); + // entry row = table.addRow (); table.addCell (row, 0, "Entered"); Date dt (::atoi (refTask.getAttribute ("entry").c_str ())); @@ -504,6 +506,24 @@ std::string handleInfo (TDB& tdb, T& task, Config& conf) table.addCell (row, 1, entry + " (" + age + ")"); + // fg + std::string color = refTask.getAttribute ("fg"); + if (color != "") + { + row = table.addRow (); + table.addCell (row, 0, "Foreground color"); + table.addCell (row, 1, color); + } + + // bg + color = refTask.getAttribute ("bg"); + if (color != "") + { + row = table.addRow (); + table.addCell (row, 0, "Background color"); + table.addCell (row, 1, color); + } + out << optionalBlankLine (conf) << table.render () << std::endl;