fix colorizing when not bold, type of fase for false
This commit is contained in:
parent
05f062d23d
commit
60eb82aed5
2 changed files with 3 additions and 3 deletions
|
@ -242,11 +242,11 @@ format(Log) ->
|
|||
%% (bold color) we don't need to modify the color
|
||||
colorize(State, Color, true, Msg) when ?VALID_COLOR(Color),
|
||||
Color >= $A, Color =< $Z ->
|
||||
colorize(State, Color, fase, Msg);
|
||||
colorize(State, Color, false, Msg);
|
||||
%% We're sneaky we can substract 32 to get the uppercase character if we want
|
||||
%% bold but have a non bold color.
|
||||
colorize(State, Color, true, Msg) when ?VALID_COLOR(Color) ->
|
||||
colorize(State, Color - 32, fase, Msg);
|
||||
colorize(State, Color - 32, false, Msg);
|
||||
colorize(#state_t{caller=command_line, intensity = high},
|
||||
Color, false, Msg) when ?VALID_COLOR(Color) ->
|
||||
lists:flatten(cf:format("~!" ++ [Color] ++"~s~s", [?PREFIX, Msg]));
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
{vsn,"0.18.0"},
|
||||
{modules,[]},
|
||||
{registered,[]},
|
||||
{applications,[kernel,stdlib]},
|
||||
{applications,[kernel,stdlib,cf]},
|
||||
{contributors,["Eric Merritt","Tristan Sloughter",
|
||||
"Jordan Wilberding","Martin Logan"]},
|
||||
{licenses,["Apache"]},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue