Bug - Summary report broken linefeeds
- Applied same #907 patch for CmdHistory.cpp to CmdSummary.cpp.
This commit is contained in:
@@ -406,8 +406,8 @@ int CmdGHistoryMonthly::execute (std::string& output)
|
|||||||
// Now build the view.
|
// Now build the view.
|
||||||
ViewText view;
|
ViewText view;
|
||||||
view.width (context.getWidth ());
|
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", STRING_CMD_GHISTORY_MONTH));
|
view.add (Column::factory ("string", STRING_CMD_GHISTORY_MONTH));
|
||||||
view.add (Column::factory ("string.left_fixed", STRING_CMD_GHISTORY_NUMBER));
|
view.add (Column::factory ("string.left_fixed", STRING_CMD_GHISTORY_NUMBER));
|
||||||
|
|
||||||
Color color_add (context.config.get ("color.history.add"));
|
Color color_add (context.config.get ("color.history.add"));
|
||||||
@@ -599,7 +599,7 @@ int CmdGHistoryAnnual::execute (std::string& output)
|
|||||||
// Now build the view.
|
// Now build the view.
|
||||||
ViewText view;
|
ViewText view;
|
||||||
view.width (context.getWidth ());
|
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));
|
view.add (Column::factory ("string.left_fixed", STRING_CMD_GHISTORY_NUMBER));
|
||||||
|
|
||||||
Color color_add (context.config.get ("color.history.add"));
|
Color color_add (context.config.get ("color.history.add"));
|
||||||
|
|||||||
@@ -120,11 +120,11 @@ int CmdSummary::execute (std::string& output)
|
|||||||
// Create a table for output.
|
// Create a table for output.
|
||||||
ViewText view;
|
ViewText view;
|
||||||
view.width (context.getWidth ());
|
view.width (context.getWidth ());
|
||||||
view.add (Column::factory ("string", STRING_CMD_SUMMARY_PROJECT));
|
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_REMAINING));
|
||||||
view.add (Column::factory ("string.right", STRING_CMD_SUMMARY_AVG_AGE));
|
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.right", STRING_CMD_SUMMARY_COMPLETE));
|
||||||
view.add (Column::factory ("string", "0% 100%"));
|
view.add (Column::factory ("string.left_fixed", "0% 100%"));
|
||||||
|
|
||||||
Color bar_color (context.config.get ("color.summary.bar"));
|
Color bar_color (context.config.get ("color.summary.bar"));
|
||||||
Color bg_color (context.config.get ("color.summary.background"));
|
Color bg_color (context.config.get ("color.summary.background"));
|
||||||
|
|||||||
Reference in New Issue
Block a user