Merge branch 'dev' into enh-dns-autoconf

This commit is contained in:
Alexandre Aubin 2021-09-17 00:43:24 +02:00
commit c8a28882b7

View file

@ -913,8 +913,8 @@ class DisplayTextQuestion(Question):
"warning": "yellow",
"danger": "red",
}
text = m18n.g(self.style) if self.style != "danger" else m18n.n("danger")
return colorize(text, color[self.style]) + f" {text}"
prompt = m18n.g(self.style) if self.style != "danger" else m18n.n("danger")
return colorize(prompt, color[self.style]) + f" {text}"
else:
return text