go/src/text
Paul Jolly a501383fc3 text/template/parse: respect delims in String representations
Use the same delimiters in String representation of nodes that were
used during the parsing of a template.

This means that when using custom delims we can roundtrip back to the
original Parse input (modulo superfluous whitespace within actions).

Change-Id: I5c33e92965c7b548b854390f1189c6cc37d4d687
Reviewed-on: https://go-review.googlesource.com/c/go/+/642019
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Mark Freeman <markfreeman@google.com>
LUCI-TryBot-Result: golang-scoped@luci-project-accounts.iam.gserviceaccount.com <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Daniel Martí <mvdan@mvdan.cc>
2026-06-09 08:30:53 -07:00
..
scanner text/scanner: add required ScanComments in example 2025-02-03 08:46:25 -08:00
tabwriter text/tabwriter: add recovered panic message to rethrow 2024-02-29 16:46:34 +00:00
template text/template/parse: respect delims in String representations 2026-06-09 08:30:53 -07:00