- Fixed Bug #741, which miscounted columns widths when a table header used
  unicode characters (thanks to Tomas Cech).
This commit is contained in:
Paul Beckingham 2011-04-22 00:39:30 -04:00
parent 83320a3e07
commit d7cbd46653
2 changed files with 3 additions and 13 deletions

View file

@ -44,6 +44,8 @@
truncated to a page.
+ Fixed Bug #732, which fixes misleading messages and documentation for
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
are quoted (thanks to Duane Waddle).
+ Applied patch for Bug #746, which added missing documentation for the 'entry'

View file

@ -288,18 +288,6 @@ Color Table::getColor (const int index, const int row, const int col)
if (index % 2)
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.
sprintf (id, "row:%d", row);
if ((i = mColor.find (id)) != mColor.end ())
@ -459,7 +447,7 @@ const std::string Table::formatHeader (
std::string data = mColumns[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, ' ');