From cd70d56260c176dfe96a4008f43a7c0a49abf8b3 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sat, 31 Oct 2015 16:55:55 -0400 Subject: [PATCH] ColString: Now uses ::renderString{Left,Right} --- src/columns/ColString.cpp | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/columns/ColString.cpp b/src/columns/ColString.cpp index 499448989..df38e1de3 100644 --- a/src/columns/ColString.cpp +++ b/src/columns/ColString.cpp @@ -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); } ////////////////////////////////////////////////////////////////////////////////