mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ColTags: Now uses ::renderStringRight
This commit is contained in:
parent
4411fc02c5
commit
43cdb0fa3a
1 changed files with 3 additions and 7 deletions
|
@ -135,21 +135,17 @@ void ColumnTags::render (
|
||||||
wrapText (all, tags, width, _hyphenate);
|
wrapText (all, tags, width, _hyphenate);
|
||||||
|
|
||||||
for (auto& i : all)
|
for (auto& i : all)
|
||||||
lines.push_back (color.colorize (leftJustify (i, width)));
|
renderStringLeft (lines, width, color, i);
|
||||||
}
|
}
|
||||||
else if (_style == "indicator")
|
else if (_style == "indicator")
|
||||||
{
|
{
|
||||||
lines.push_back (
|
renderStringRight (lines, width, color, context.config.get ("tag.indicator"));
|
||||||
color.colorize (
|
|
||||||
rightJustify (context.config.get ("tag.indicator"), width)));
|
|
||||||
}
|
}
|
||||||
else if (_style == "count")
|
else if (_style == "count")
|
||||||
{
|
{
|
||||||
std::vector <std::string> all;
|
std::vector <std::string> all;
|
||||||
split (all, tags, ',');
|
split (all, tags, ',');
|
||||||
lines.push_back (
|
renderStringRight (lines, width, color, "[" + format (static_cast <int> (all.size ())) + "]");
|
||||||
color.colorize (
|
|
||||||
rightJustify ("[" + format ((int)all.size ()) + "]", width)));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue