fmt: remove \t before same line comments

pull/4461/head^2
Alexander Medvednikov 2020-04-17 20:53:39 +02:00
parent 2c778c8849
commit 515da900e4
1 changed files with 8 additions and 7 deletions

View File

@ -737,7 +737,8 @@ fn (var f Fmt) comment(node ast.Comment) {
s = '// ' + s s = '// ' + s
} }
if !is_separate_line { 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) f.writeln(s)
return return