Escape \n in EVAL_TEMPLATE in modules/eval_python.py
This commit is contained in:
parent
baa039e86d
commit
f08624ddbd
1 changed files with 2 additions and 2 deletions
|
@ -16,9 +16,9 @@ except Exception as e:
|
||||||
old_stdout.write(json.dumps({"success": False, "out": str(e)}))
|
old_stdout.write(json.dumps({"success": False, "out": str(e)}))
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
stdout.write("\n")
|
stdout.write("\\n")
|
||||||
if not result == None:
|
if not result == None:
|
||||||
stdout.write(str(result)+"\n")
|
stdout.write(str(result)+"\\n")
|
||||||
old_stdout.write(json.dumps({"success": True, "out": stdout.getvalue()}))
|
old_stdout.write(json.dumps({"success": True, "out": stdout.getvalue()}))
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue