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:
parent
2c778c8849
commit
515da900e4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user