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

vfmt: trim ^A from embedded inline comments too

This commit is contained in:
Delyan Angelov 2020-11-19 15:32:51 +02:00
parent 40770f1697
commit 92a75c80db

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
}