diff --git a/server.go b/server.go index a51f7a1..acd795f 100644 --- a/server.go +++ b/server.go @@ -86,7 +86,7 @@ func ExecHandler(w http.ResponseWriter, r *http.Request) { thread := &starlark.Thread{ // print func writes directly to the response writer Print: func(thread *starlark.Thread, msg string) { - w.Write([]byte(msg)) + w.Write([]byte(msg + "\n")) wrote = true }, Load: starlib.Loader,