From 2b8178c14d8f71a3f022653c2e779e92eea9cdec Mon Sep 17 00:00:00 2001 From: Sean Liao Date: Tue, 22 Mar 2022 20:53:10 +0000 Subject: [PATCH] text/template: remove newline special casing in documentation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Updates #29770 Fixes #51872 Change-Id: Icee660c8cc6c69a79ad11e818dd8ab40a344e800 Reviewed-on: https://go-review.googlesource.com/c/go/+/394676 Reviewed-by: Daniel Martí Trust: Daniel Martí Trust: Ian Lance Taylor --- src/text/template/doc.go | 1 - 1 file changed, 1 deletion(-) diff --git a/src/text/template/doc.go b/src/text/template/doc.go index 10093881fbe..58cc97371b0 100644 --- a/src/text/template/doc.go +++ b/src/text/template/doc.go @@ -18,7 +18,6 @@ structure as execution proceeds. The input text for a template is UTF-8-encoded text in any format. "Actions"--data evaluations or control structures--are delimited by "{{" and "}}"; all text outside actions is copied to the output unchanged. -Except for raw strings, actions may not span newlines, although comments can. Once parsed, a template may be executed safely in parallel, although if parallel executions share a Writer the output may be interleaved.