From bcbff8d99bc99f011991e2e74b805b5dd4a0bf32 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 31 May 2011 00:46:56 -0400 Subject: [PATCH] Bug - Fixed bug so that columns of type "string*" calculate ideal size by taking into account \n characters in the data, rather than simply the string length. --- src/columns/ColString.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/columns/ColString.cpp b/src/columns/ColString.cpp index e61f2fc39..6ba1c4ec0 100644 --- a/src/columns/ColString.cpp +++ b/src/columns/ColString.cpp @@ -62,7 +62,7 @@ void ColumnString::measure (const std::string& value, int& minimum, int& maximum _style == "default") { std::string stripped = Color::strip (value); - maximum = stripped.length (); + maximum = longestLine (stripped); minimum = longestWord (stripped); } else if (_style == "left_fixed" ||