Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 799bd51

Browse files
committed
Minor fix when two readInput/dataToStdout are called one at a time
1 parent 97c0685 commit 799bd51

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

lib/core/common.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,10 @@ def dataToStdout(data, forceOutput=False, bold=False, content_type=None, status=
774774
else:
775775
message = data
776776

777+
if kb.prependFlag:
778+
message = "\n%s" % message
779+
kb.prependFlag = False
780+
777781
if hasattr(conf, "api"):
778782
sys.stdout.write(message, status, content_type)
779783
else:

0 commit comments

Comments
 (0)