- The 'summary' report now uses 'project.indented' format.
This commit is contained in:
Paul Beckingham 2012-03-25 18:00:22 -04:00
parent adb6785931
commit a73c711188
3 changed files with 7 additions and 1 deletions

View file

@ -33,6 +33,7 @@
#include <ViewText.h>
#include <Duration.h>
#include <text.h>
#include <util.h>
#include <i18n.h>
#include <main.h>
#include <CmdSummary.h>
@ -135,7 +136,10 @@ int CmdSummary::execute (std::string& output)
if (countPending[i->first] > 0)
{
int row = view.addRow ();
view.set (row, 0, (i->first == "" ? "(none)" : i->first));
view.set (row, 0, (i->first == ""
? STRING_CMD_SUMMARY_NONE
: indentProject (i->first, " ", '.')));
view.set (row, 1, countPending[i->first]);
if (counter[i->first])
view.set (row, 2, Duration ((int) (sumEntry[i->first] / (double)counter[i->first])).format ());