Minor beautification

This commit is contained in:
Miroslav Stampar
2020-02-07 14:26:01 +01:00
parent 6467c63c24
commit 3513ca66fe
3 changed files with 5 additions and 2 deletions

View File

@@ -74,7 +74,7 @@ try:
string = match.group(1)
message = message.replace("'%s" % string, "'%s" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)
else:
match = re.search(r" \('(.+)'\)\Z", message)
match = re.search(r" \('(.+)'\)\Z", message) or re.search(r"output: '(.+)'\Z", message)
if match:
string = match.group(1)
message = message.replace("'%s'" % string, "'%s'" % ''.join((self.csi, str(self.color_map["white"] + 30), 'm', string, self._reset(message))), 1)