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:
parent
40770f1697
commit
92a75c80db
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user