diff --git a/vlib/v/fmt/comments.v b/vlib/v/fmt/comments.v index 9440d5a935..effbeca50e 100644 --- a/vlib/v/fmt/comments.v +++ b/vlib/v/fmt/comments.v @@ -52,7 +52,7 @@ pub fn (mut f Fmt) comment(node ast.Comment, options CommentsOptions) { } out_s += s } - if !is_separate_line { // && f.indent > 0 { + if !is_separate_line && f.indent > 0 { f.remove_new_line() // delete the generated \n f.write(' ') } diff --git a/vlib/v/fmt/tests/donut_card_expected.vv b/vlib/v/fmt/tests/donut_card_expected.vv index c184a01e4d..53c92f84ae 100644 --- a/vlib/v/fmt/tests/donut_card_expected.vv +++ b/vlib/v/fmt/tests/donut_card_expected.vv @@ -4,7 +4,6 @@ import strings import time { sleep } const alt = '.,-~:;=!*#$@' - fn rd(cs int, ls int, a f64, b f64) { tt_spacing, p_spacing := 0.07, 0.02 r1, r2, k2 := 1, 2, 5