Remove leading space in warning messages (#62002)

ci_complete
pull/57360/head
Sam Doran 5 years ago committed by Matt Martz
parent 32fbde67f7
commit ea6e96985a

@ -0,0 +1,2 @@
bugfixes:
- display - remove leading space when displaying WARNING messages

@ -248,7 +248,7 @@ class Display(with_metaclass(Singleton, object)):
def warning(self, msg, formatted=False):
if not formatted:
new_msg = "\n[WARNING]: %s" % msg
new_msg = "[WARNING]: %s" % msg
wrapped = textwrap.wrap(new_msg, self.columns)
new_msg = "\n".join(wrapped) + "\n"
else:

Loading…
Cancel
Save