Bug - ColDescriptionf indent

- Fixed bug in description.default rendering that inserted the indentation
  twice.
This commit is contained in:
Paul Beckingham 2011-07-02 09:57:42 -04:00
parent 72fa53ad3d
commit f1b5999983

View file

@ -174,10 +174,7 @@ void ColumnDescription::render (
std::vector <std::string>::iterator i;
for (i = raw.begin (); i != raw.end (); ++i)
if (i == raw.begin ())
lines.push_back (color.colorize (leftJustify (*i, width)));
else
lines.push_back (color.colorize (leftJustify (std::string (indent, ' ') + *i, width)));
lines.push_back (color.colorize (leftJustify (*i, width)));
}
// This is a description