mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 11:27:19 +02:00
Bug - Summary report broken linefeeds
- Applied same #907 patch for CmdHistory.cpp to CmdSummary.cpp.
This commit is contained in:
parent
6cf9790fac
commit
e05b3633f2
2 changed files with 8 additions and 8 deletions
|
@ -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"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue