Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

text/template: no way to remove unnecessary new line for a commentary line #42759

Closed
IGLOU-EU opened this issue Nov 21, 2020 · 1 comment
Closed

Comments

@IGLOU-EU
Copy link

Hi gophers,

What version of Go are you using (go version)?

$ go version
go version go1.15.5 linux/amd64

What did you do?

https://play.golang.org/p/j9xECfevsMo

What did you expect to see?

riri
fifi
loulou

What did you see instead?

riri


fifi
loulou
@IGLOU-EU
Copy link
Author

My bad https://golang.org/pkg/text/template/#hdr-Actions

{{- /* a comment with white space trimmed from preceding and following text */ -}}

@golang golang locked and limited conversation to collaborators Nov 21, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants