Only reset ansi bolding when both color-bold and bold are false
This commit is contained in:
parent
e5f068f660
commit
00eb4027ec
1 changed files with 1 additions and 1 deletions
|
@ -201,7 +201,7 @@ def to_ansi_colors(s):
|
||||||
else:
|
else:
|
||||||
if color:
|
if color:
|
||||||
replace += utils.consts.ANSI_COLOR_RESET
|
replace += utils.consts.ANSI_COLOR_RESET
|
||||||
if ansi_bold:
|
if ansi_bold and not bold:
|
||||||
replace += utils.consts.ANSI_BOLD_RESET
|
replace += utils.consts.ANSI_BOLD_RESET
|
||||||
color = False
|
color = False
|
||||||
ansi_bold = False
|
ansi_bold = False
|
||||||
|
|
Loading…
Reference in a new issue