Only reset ansi bolding when both color-bold and bold are false

This commit is contained in:
jesopo 2018-11-14 08:09:01 +00:00
parent e5f068f660
commit 00eb4027ec

View file

@ -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