ColDepends: Now uses ::renderStringLeft

This commit is contained in:
Paul Beckingham 2015-10-31 16:14:14 -04:00
parent 06c50efa63
commit 292e2f1b89

View file

@ -122,22 +122,15 @@ void ColumnDepends::render (
if (task.has (_name))
{
if (_style == "indicator")
renderStringRight (lines, width, color, context.config.get ("dependency.indicator"));
else
{
lines.push_back (
color.colorize (
rightJustify (context.config.get ("dependency.indicator"), width)));
return;
}
std::vector <Task> blocking;
dependencyGetBlocking (task, blocking);
if (_style == "count")
{
lines.push_back (
color.colorize (
rightJustify ("[" + format ((int)blocking.size ()) + "]", width)));
}
renderStringRight (lines, width, color, "[" + format (static_cast <int>(blocking.size ())) + "]");
else if (_style == "default" ||
_style == "list")
{
@ -152,7 +145,8 @@ void ColumnDepends::render (
wrapText (all, combined, width, _hyphenate);
for (auto& i : all)
lines.push_back (color.colorize (leftJustify (i, width)));
renderStringLeft (lines, width, color, i);
}
}
}
}