Minor fix when two readInput/dataToStdout are called one at a time

This commit is contained in:
Miroslav Stampar 2013-02-15 16:55:30 +01:00
parent 97c06854a4
commit 799bd51c2e

View File

@ -774,6 +774,10 @@ def dataToStdout(data, forceOutput=False, bold=False, content_type=None, status=
else:
message = data
if kb.prependFlag:
message = "\n%s" % message
kb.prependFlag = False
if hasattr(conf, "api"):
sys.stdout.write(message, status, content_type)
else: