fmt: fix comments.v

This commit is contained in:
Delyan Angelov 2023-11-25 10:49:37 +02:00
parent 820f53caa3
commit 37767cfa8d
No known key found for this signature in database
GPG key ID: 66886C0F12D595ED
2 changed files with 1 additions and 2 deletions

View file

@ -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(' ')
}

View file

@ -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