indentlog: refactor: with_color() uses color_spec

This commit is contained in:
Roland Conybeare 2023-09-18 12:34:17 -04:00
commit a9777a7ddf
5 changed files with 8 additions and 8 deletions

View file

@ -250,10 +250,10 @@ namespace xo {
switch(fn.style()) {
case FS_Literal:
os << with_color(fn.encoding(), fn.color(), fn.pretty());
os << with_color(color_spec(fn.encoding(), fn.color()), fn.pretty());
break;
case FS_Pretty:
os << "[" << with_color(fn.encoding(), fn.color(), fn.pretty()) << "]";
os << "[" << with_color(color_spec(fn.encoding(), fn.color()), fn.pretty()) << "]";
break;
case FS_Simple:
os << color_on(fn.encoding(), fn.color());