mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ColString: Now uses ::renderString{Left,Right}
This commit is contained in:
parent
410175efd3
commit
cd70d56260
1 changed files with 6 additions and 8 deletions
|
@ -98,7 +98,7 @@ void ColumnString::render (
|
|||
wrapText (raw, value, width, _hyphenate);
|
||||
|
||||
for (auto& i : raw)
|
||||
lines.push_back (color.colorize (leftJustify (i, width)));
|
||||
renderStringLeft (lines, width, color, i);
|
||||
}
|
||||
else if (_style == "right")
|
||||
{
|
||||
|
@ -106,16 +106,14 @@ void ColumnString::render (
|
|||
wrapText (raw, value, width, _hyphenate);
|
||||
|
||||
for (auto& i : raw)
|
||||
lines.push_back (color.colorize (rightJustify (i, width)));
|
||||
renderStringRight (lines, width, color, i);
|
||||
}
|
||||
|
||||
else if (_style == "left_fixed")
|
||||
{
|
||||
lines.push_back (leftJustify (value, width));
|
||||
}
|
||||
renderStringLeft (lines, width, color, value);
|
||||
|
||||
else if (_style == "right_fixed")
|
||||
{
|
||||
lines.push_back (rightJustify (value, width));
|
||||
}
|
||||
renderStringRight (lines, width, color, value);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue