From adb6785931c11aa98d58d3e7259eb20006f2ce30 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 25 Mar 2012 17:59:37 -0400 Subject: [PATCH] Feature - The 'projects' report now uses 'project.indented' format. --- ChangeLog | 1 + src/commands/CmdProjects.cpp | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 06d4acc1f..8441e79ad 100644 --- a/ChangeLog +++ b/ChangeLog @@ -5,6 +5,7 @@ Features + Added the new 'indented' format for the 'project' attribute. + + The 'projects' report now uses 'project.indented' format. Bugs + Fixed grammar in feedback string (thanks to Uli Martens). diff --git a/src/commands/CmdProjects.cpp b/src/commands/CmdProjects.cpp index 760ea1e4e..22885f646 100644 --- a/src/commands/CmdProjects.cpp +++ b/src/commands/CmdProjects.cpp @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -116,7 +117,9 @@ int CmdProjects::execute (std::string& output) for (project = unique.begin (); project != unique.end (); ++project) { 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, 2, none[project->first]); view.set (row, 3, low[project->first]);