mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ColUUID: Now uses ::renderStringLeft
This commit is contained in:
parent
65b8fb7bce
commit
06c50efa63
1 changed files with 4 additions and 2 deletions
|
@ -66,14 +66,16 @@ void ColumnUUID::render (
|
||||||
int width,
|
int width,
|
||||||
Color& color)
|
Color& color)
|
||||||
{
|
{
|
||||||
|
// No need to check the presence of UUID - all tasks have one.
|
||||||
|
|
||||||
// f30cb9c3-3fc0-483f-bfb2-3bf134f00694 default
|
// f30cb9c3-3fc0-483f-bfb2-3bf134f00694 default
|
||||||
// f30cb9c3 short
|
// f30cb9c3 short
|
||||||
if (_style == "default" ||
|
if (_style == "default" ||
|
||||||
_style == "long")
|
_style == "long")
|
||||||
lines.push_back (color.colorize (leftJustify (task.get (_name), width)));
|
renderStringLeft (lines, width, color, task.get (_name));
|
||||||
|
|
||||||
else if (_style == "short")
|
else if (_style == "short")
|
||||||
lines.push_back (color.colorize (leftJustify (task.get (_name).substr (0, 8), width)));
|
renderStringLeft (lines, width, color, task.get (_name).substr (0, 8));
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue