From e05b3633f2844deafec9fd169e31f85c89fbfe3d Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 28 Jan 2012 10:43:11 -0500 Subject: [PATCH] Bug - Summary report broken linefeeds - Applied same #907 patch for CmdHistory.cpp to CmdSummary.cpp. --- src/commands/CmdHistory.cpp | 6 +++--- src/commands/CmdSummary.cpp | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/commands/CmdHistory.cpp b/src/commands/CmdHistory.cpp index 7c7985129..31dc3c613 100644 --- a/src/commands/CmdHistory.cpp +++ b/src/commands/CmdHistory.cpp @@ -406,8 +406,8 @@ int CmdGHistoryMonthly::execute (std::string& output) // Now build the view. ViewText view; view.width (context.getWidth ()); - view.add (Column::factory ("string", STRING_CMD_GHISTORY_YEAR)); - view.add (Column::factory ("string", STRING_CMD_GHISTORY_MONTH)); + view.add (Column::factory ("string", STRING_CMD_GHISTORY_YEAR)); + view.add (Column::factory ("string", STRING_CMD_GHISTORY_MONTH)); view.add (Column::factory ("string.left_fixed", STRING_CMD_GHISTORY_NUMBER)); Color color_add (context.config.get ("color.history.add")); @@ -599,7 +599,7 @@ int CmdGHistoryAnnual::execute (std::string& output) // Now build the view. ViewText view; view.width (context.getWidth ()); - view.add (Column::factory ("string", STRING_CMD_GHISTORY_YEAR)); + view.add (Column::factory ("string", STRING_CMD_GHISTORY_YEAR)); view.add (Column::factory ("string.left_fixed", STRING_CMD_GHISTORY_NUMBER)); Color color_add (context.config.get ("color.history.add")); diff --git a/src/commands/CmdSummary.cpp b/src/commands/CmdSummary.cpp index 43caf2847..94ce5a0f6 100644 --- a/src/commands/CmdSummary.cpp +++ b/src/commands/CmdSummary.cpp @@ -120,11 +120,11 @@ int CmdSummary::execute (std::string& output) // Create a table for output. ViewText view; view.width (context.getWidth ()); - view.add (Column::factory ("string", STRING_CMD_SUMMARY_PROJECT)); - view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_REMAINING)); - view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_AVG_AGE)); - view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_COMPLETE)); - view.add (Column::factory ("string", "0% 100%")); + view.add (Column::factory ("string", STRING_CMD_SUMMARY_PROJECT)); + view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_REMAINING)); + view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_AVG_AGE)); + view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_COMPLETE)); + view.add (Column::factory ("string.left_fixed", "0% 100%")); Color bar_color (context.config.get ("color.summary.bar")); Color bg_color (context.config.get ("color.summary.background"));