CmdColumns: Table headers consistent
This commit is contained in:
@@ -77,16 +77,7 @@ int CmdColumns::execute (std::string& output)
|
|||||||
formats.add (STRING_COLUMN_LABEL_MODIFY);
|
formats.add (STRING_COLUMN_LABEL_MODIFY);
|
||||||
formats.add (STRING_COLUMN_LABEL_STYLES);
|
formats.add (STRING_COLUMN_LABEL_STYLES);
|
||||||
formats.add (STRING_COLUMN_LABEL_EXAMPLES);
|
formats.add (STRING_COLUMN_LABEL_EXAMPLES);
|
||||||
|
setHeaderUnderline (formats);
|
||||||
if (context.color ())
|
|
||||||
{
|
|
||||||
Color label (context.config.get ("color.label"));
|
|
||||||
formats.colorHeader (label);
|
|
||||||
|
|
||||||
Color alternate (context.config.get ("color.alternate"));
|
|
||||||
formats.colorOdd (alternate);
|
|
||||||
formats.intraColorOdd (alternate);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const auto& name : names)
|
for (const auto& name : names)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user