Minor code styling change in urils.irc
This commit is contained in:
parent
0f2a8c7932
commit
f46015d9d8
1 changed files with 2 additions and 2 deletions
|
@ -217,11 +217,11 @@ def to_ansi_colors(s: str) -> str:
|
|||
replace += utils.consts.ANSI_FORMAT % background
|
||||
else:
|
||||
if has_foreground:
|
||||
has_foreground = False
|
||||
replace += utils.consts.ANSI_FOREGROUND_RESET
|
||||
if has_background:
|
||||
has_background = False
|
||||
replace += utils.consts.ANSI_BACKGROUND_RESET
|
||||
has_foreground = False
|
||||
has_background = False
|
||||
elif type == utils.consts.BOLD:
|
||||
if bold:
|
||||
replace += utils.consts.ANSI_BOLD_RESET
|
||||
|
|
Loading…
Reference in a new issue