From 851347fccc5f890263dadd38f0dc37beca7c4844 Mon Sep 17 00:00:00 2001 From: Uli Martens Date: Wed, 18 Jan 2012 07:29:08 -0500 Subject: [PATCH] Bug #907 - The bug first occured in commit 36ed70ad93d37b952e1876b62ad4d16711f5f88a and seems to be caused by the rewritten break point detection. This adds linefeeds into the table output, where they're not wanted. This can be fixed by marking the respective tables as nonbreakable, as done in the attached patch. Signed-off-by: Paul Beckingham --- src/commands/CmdHistory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/commands/CmdHistory.cpp b/src/commands/CmdHistory.cpp index 908d381db..7c7985129 100644 --- a/src/commands/CmdHistory.cpp +++ b/src/commands/CmdHistory.cpp @@ -408,7 +408,7 @@ int CmdGHistoryMonthly::execute (std::string& output) 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_NUMBER)); + view.add (Column::factory ("string.left_fixed", STRING_CMD_GHISTORY_NUMBER)); Color color_add (context.config.get ("color.history.add")); Color color_done (context.config.get ("color.history.done")); @@ -600,7 +600,7 @@ int CmdGHistoryAnnual::execute (std::string& output) ViewText view; view.width (context.getWidth ()); view.add (Column::factory ("string", STRING_CMD_GHISTORY_YEAR)); - view.add (Column::factory ("string", 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_done (context.config.get ("color.history.done"));