From 92a75c80db74921c4ded59e24d773dd5cbd9cd28 Mon Sep 17 00:00:00 2001 From: Delyan Angelov Date: Thu, 19 Nov 2020 15:32:51 +0200 Subject: [PATCH] vfmt: trim ^A from embedded inline comments too --- vlib/v/fmt/fmt.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/fmt/fmt.v b/vlib/v/fmt/fmt.v index 6c9fbeb58a..090f618d84 100644 --- a/vlib/v/fmt/fmt.v +++ b/vlib/v/fmt/fmt.v @@ -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 }