From 799bd51c2ead8d06343d0da6ab2cb5854b90dc5a Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 15 Feb 2013 16:55:30 +0100 Subject: [PATCH] Minor fix when two readInput/dataToStdout are called one at a time --- lib/core/common.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/core/common.py b/lib/core/common.py index 7d70c9262..b1d0f449b 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -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: