mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 09:53:08 +02:00
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:
parent
83320a3e07
commit
d7cbd46653
2 changed files with 3 additions and 13 deletions
|
@ -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'
|
||||
|
|
|
@ -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, ' ');
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue