Hi all,

Say I have the following struct:

type Info struct {
       Summary string
       Desc    string
}

And this is the template string

tmplStr      = `Summary={{.Summary}}, Desc={{.Desc}}`

If the value of Desc has newlines, it looks like the template engine strips 
those out and replaces them with spaces. Is there any way to force the 
template engine to preserve the new lines?

Thanks,
Joe

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to