vfmt: trim ^A from embedded inline comments too

pull/6877/head
Delyan Angelov 2020-11-19 15:32:51 +02:00
parent 40770f1697
commit 92a75c80db
1 changed files with 1 additions and 1 deletions

View File

@ -1207,7 +1207,7 @@ struct CommentsOptions {
pub fn (mut f Fmt) comment(node ast.Comment, options CommentsOptions) {
if options.iembed {
x := node.text.replace('\n', ' ')
x := node.text.replace('\n', ' ').trim_left('\x01')
f.write('/* $x */')
return
}