Bug #741
- Fixed Bug #741, which miscounted columns widths when a table header used unicode characters (thanks to Tomas Cech).
This commit is contained in:
@@ -44,6 +44,8 @@
|
|||||||
truncated to a page.
|
truncated to a page.
|
||||||
+ Fixed Bug #732, which fixes misleading messages and documentation for
|
+ Fixed Bug #732, which fixes misleading messages and documentation for
|
||||||
merge/push/pull URIs (thanks to Tomas Cech).
|
merge/push/pull URIs (thanks to Tomas Cech).
|
||||||
|
+ Fixed Bug #741, which miscounted columns widths when a table header used
|
||||||
|
unicode characters (thanks to Tomas Cech).
|
||||||
+ Fixed Bug #745, which allows projects names with spaces, provided the values
|
+ Fixed Bug #745, which allows projects names with spaces, provided the values
|
||||||
are quoted (thanks to Duane Waddle).
|
are quoted (thanks to Duane Waddle).
|
||||||
+ Applied patch for Bug #746, which added missing documentation for the 'entry'
|
+ Applied patch for Bug #746, which added missing documentation for the 'entry'
|
||||||
|
|||||||
@@ -288,18 +288,6 @@ Color Table::getColor (const int index, const int row, const int col)
|
|||||||
if (index % 2)
|
if (index % 2)
|
||||||
c = alternate;
|
c = alternate;
|
||||||
|
|
||||||
/*
|
|
||||||
// TODO Obsolete - this is not used. Consider removal.
|
|
||||||
// Blend with a table color, if specified.
|
|
||||||
if ((i = mColor.find ("table")) != mColor.end ())
|
|
||||||
c.blend (i->second);
|
|
||||||
|
|
||||||
// Blend with a column color, if specified.
|
|
||||||
sprintf (id, "col:%d", col);
|
|
||||||
if ((i = mColor.find (id)) != mColor.end ())
|
|
||||||
c.blend (i->second);
|
|
||||||
*/
|
|
||||||
|
|
||||||
// Blend with a row color, if specified.
|
// Blend with a row color, if specified.
|
||||||
sprintf (id, "row:%d", row);
|
sprintf (id, "row:%d", row);
|
||||||
if ((i = mColor.find (id)) != mColor.end ())
|
if ((i = mColor.find (id)) != mColor.end ())
|
||||||
@@ -459,7 +447,7 @@ const std::string Table::formatHeader (
|
|||||||
|
|
||||||
std::string data = mColumns[col];
|
std::string data = mColumns[col];
|
||||||
Color c = getHeaderUnderline (col);
|
Color c = getHeaderUnderline (col);
|
||||||
int gap = width - strippedLength (data); // TODO Does this need characters () too?
|
int gap = width - characters (data);
|
||||||
|
|
||||||
std::string pad = std::string (padding, ' ');
|
std::string pad = std::string (padding, ' ');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user