Escape \n in EVAL_TEMPLATE in modules/eval_python.py

This commit is contained in:
jesopo 2018-10-17 15:04:38 +01:00
parent baa039e86d
commit f08624ddbd

View file

@ -16,9 +16,9 @@ except Exception as e:
old_stdout.write(json.dumps({"success": False, "out": str(e)}))
sys.exit()
stdout.write("\n")
stdout.write("\\n")
if not result == None:
stdout.write(str(result)+"\n")
stdout.write(str(result)+"\\n")
old_stdout.write(json.dumps({"success": True, "out": stdout.getvalue()}))
"""