- The 'projects' report now uses 'project.indented' format.
This commit is contained in:
Paul Beckingham 2012-03-25 17:59:37 -04:00
parent 17c605502c
commit adb6785931
2 changed files with 5 additions and 1 deletions

View file

@ -5,6 +5,7 @@
Features Features
+ Added the new 'indented' format for the 'project' attribute. + Added the new 'indented' format for the 'project' attribute.
+ The 'projects' report now uses 'project.indented' format.
Bugs Bugs
+ Fixed grammar in feedback string (thanks to Uli Martens). + Fixed grammar in feedback string (thanks to Uli Martens).

View file

@ -31,6 +31,7 @@
#include <Context.h> #include <Context.h>
#include <ViewText.h> #include <ViewText.h>
#include <text.h> #include <text.h>
#include <util.h>
#include <i18n.h> #include <i18n.h>
#include <main.h> #include <main.h>
#include <CmdProjects.h> #include <CmdProjects.h>
@ -116,7 +117,9 @@ int CmdProjects::execute (std::string& output)
for (project = unique.begin (); project != unique.end (); ++project) for (project = unique.begin (); project != unique.end (); ++project)
{ {
int row = view.addRow (); int row = view.addRow ();
view.set (row, 0, (project->first == "" ? STRING_CMD_PROJECTS_NONE : project->first)); view.set (row, 0, (project->first == ""
? STRING_CMD_PROJECTS_NONE
: indentProject (project->first, " ", '.')));
view.set (row, 1, project->second); view.set (row, 1, project->second);
view.set (row, 2, none[project->first]); view.set (row, 2, none[project->first]);
view.set (row, 3, low[project->first]); view.set (row, 3, low[project->first]);