indentlog: refactor: color_on() uses color_spec

This commit is contained in:
Roland Conybeare 2023-09-18 12:35:29 -04:00
commit dfc84d5fde
2 changed files with 4 additions and 4 deletions

View file

@ -256,13 +256,13 @@ namespace xo {
os << "[" << with_color(color_spec(fn.encoding(), fn.color()), fn.pretty()) << "]";
break;
case FS_Simple:
os << color_on(fn.encoding(), fn.color());
os << color_on(color_spec(fn.encoding(), fn.color()));
function_name::print_simple(os, fn.pretty());
os << color_off();
break;
case FS_Streamlined:
/* omit namespace qualifiers and template arguments */
os << color_on(fn.encoding(), fn.color());
os << color_on(color_spec(fn.encoding(), fn.color()));
function_name::print_streamlined(os, fn.pretty());
os << color_off();
break;