indentlog: refactor: with_color() uses color_spec
This commit is contained in:
parent
1be7001966
commit
a9777a7ddf
5 changed files with 8 additions and 8 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue