diff --git a/ChangeLog b/ChangeLog index 8441e79ad..02fd68034 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ Features + Added the new 'indented' format for the 'project' attribute. + The 'projects' report now uses 'project.indented' format. + + The 'summary' report now uses 'project.indented' format. Bugs + Fixed grammar in feedback string (thanks to Uli Martens). diff --git a/src/commands/CmdSummary.cpp b/src/commands/CmdSummary.cpp index bc46e9999..741705495 100644 --- a/src/commands/CmdSummary.cpp +++ b/src/commands/CmdSummary.cpp @@ -33,6 +33,7 @@ #include #include #include +#include #include #include #include @@ -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 ()); diff --git a/src/en-US.h b/src/en-US.h index 735123e1d..109a79da6 100644 --- a/src/en-US.h +++ b/src/en-US.h @@ -300,6 +300,7 @@ #define STRING_CMD_SUMMARY_REMAINING "Remaining" #define STRING_CMD_SUMMARY_AVG_AGE "Avg age" #define STRING_CMD_SUMMARY_COMPLETE "Complete" +#define STRING_CMD_SUMMARY_NONE "(none)" #define STRING_CMD_COUNT_USAGE "Counts matching tasks" #define STRING_CMD_DELETE_USAGE "Deletes the specified task"