cuelang/cue

cmd/cue: fmt converts tabs to spaces in comments

uhthomas opened this issue · 2 comments

What version of CUE are you using (cue version)?

$ cue version
cue version v0.4.0 linux/amd64

Does this issue reproduce with the latest release?

Yes.

What did you do?

Format

//	s	o	m	e	indented comment

What did you expect to see?

No change.

What did you see instead?

// s o m e indented comment

Additional

This is a little strange and I'm not sure what the correct behavior is.

Well that's an exciting bug! Confirmed with 0070bb1 using this less than ideal script:

exec cue eval --out text input.cue
cp stdout fmt.cue
cp fmt.cue fmt.cue.golden
exec cue fmt fmt.cue
cmp fmt.cue fmt.cue.golden

-- input.cue --
"// this\tis\ta\tcomment"

This issue has been migrated to cue-lang/cue#1040.

For more details about CUE's migration to a new home, please see cue-lang/cue#1078.