1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fmt: remove \t before same line comments

This commit is contained in:
Alexander Medvednikov 2020-04-17 20:53:39 +02:00
parent 2c778c8849
commit 515da900e4

View File

@ -737,7 +737,8 @@ fn (var f Fmt) comment(node ast.Comment) {
s = '// ' + s
}
if !is_separate_line {
f.out.go_back(1) // delete the generated \n
f.remove_new_line() // delete the generated \n
f.write(' ')
}
f.writeln(s)
return