diff --git a/vlib/v/fmt/fmt.v b/vlib/v/fmt/fmt.v index dd64c80410..1d6b99447c 100644 --- a/vlib/v/fmt/fmt.v +++ b/vlib/v/fmt/fmt.v @@ -345,6 +345,7 @@ pub fn (mut f Fmt) stmt(node ast.Stmt) { f.expr(it.cond) f.write('; ') f.stmt(it.inc) + f.remove_new_line() f.writeln(' {') f.stmts(it.stmts) f.writeln('}')