vfmt: keep top level comments on their own lines
parent
29943d7a91
commit
37d51e8d74
|
@ -1080,7 +1080,7 @@ pub fn (mut f Fmt) comment(node ast.Comment) {
|
||||||
} else {
|
} else {
|
||||||
s = '// ' + s
|
s = '// ' + s
|
||||||
}
|
}
|
||||||
if !is_separate_line {
|
if !is_separate_line && f.indent > 0 {
|
||||||
f.remove_new_line() // delete the generated \n
|
f.remove_new_line() // delete the generated \n
|
||||||
f.write(' ')
|
f.write(' ')
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue