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.
This commit is contained in:
@@ -62,7 +62,7 @@ void ColumnString::measure (const std::string& value, int& minimum, int& maximum
|
|||||||
_style == "default")
|
_style == "default")
|
||||||
{
|
{
|
||||||
std::string stripped = Color::strip (value);
|
std::string stripped = Color::strip (value);
|
||||||
maximum = stripped.length ();
|
maximum = longestLine (stripped);
|
||||||
minimum = longestWord (stripped);
|
minimum = longestWord (stripped);
|
||||||
}
|
}
|
||||||
else if (_style == "left_fixed" ||
|
else if (_style == "left_fixed" ||
|
||||||
|
|||||||
Reference in New Issue
Block a user