ColString: Now uses ::renderString{Left,Right}
This commit is contained in:
@@ -98,7 +98,7 @@ void ColumnString::render (
|
|||||||
wrapText (raw, value, width, _hyphenate);
|
wrapText (raw, value, width, _hyphenate);
|
||||||
|
|
||||||
for (auto& i : raw)
|
for (auto& i : raw)
|
||||||
lines.push_back (color.colorize (leftJustify (i, width)));
|
renderStringLeft (lines, width, color, i);
|
||||||
}
|
}
|
||||||
else if (_style == "right")
|
else if (_style == "right")
|
||||||
{
|
{
|
||||||
@@ -106,16 +106,14 @@ void ColumnString::render (
|
|||||||
wrapText (raw, value, width, _hyphenate);
|
wrapText (raw, value, width, _hyphenate);
|
||||||
|
|
||||||
for (auto& i : raw)
|
for (auto& i : raw)
|
||||||
lines.push_back (color.colorize (rightJustify (i, width)));
|
renderStringRight (lines, width, color, i);
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (_style == "left_fixed")
|
else if (_style == "left_fixed")
|
||||||
{
|
renderStringLeft (lines, width, color, value);
|
||||||
lines.push_back (leftJustify (value, width));
|
|
||||||
}
|
|
||||||
else if (_style == "right_fixed")
|
else if (_style == "right_fixed")
|
||||||
{
|
renderStringRight (lines, width, color, value);
|
||||||
lines.push_back (rightJustify (value, width));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|||||||
Reference in New Issue
Block a user