From: Russ Cox Date: Thu, 3 Oct 2013 13:49:12 +0000 (-0400) Subject: go/doc: update ToHTML doc comment X-Git-Tag: go1.2rc2~78 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=01479b6c4a5a7863b9712b16123d41fea6a3951f;p=gostls13.git go/doc: update ToHTML doc comment Update #5429 R=golang-dev, r, dan.kortschak CC=golang-dev https://golang.org/cl/14293043 --- diff --git a/src/pkg/go/doc/comment.go b/src/pkg/go/doc/comment.go index c4b7e6ae6e..5c8c43e0c1 100644 --- a/src/pkg/go/doc/comment.go +++ b/src/pkg/go/doc/comment.go @@ -239,9 +239,14 @@ func anchorID(line string) string { // nor to have trailing spaces at the end of lines. // The comment markers have already been removed. // -// Turn each run of multiple \n into

. -// Turn each run of indented lines into a

 block without indent.
-// Enclose headings with header tags.
+// Each span of unindented non-blank lines is converted into
+// a single paragraph. There is one exception to the rule: a span that
+// consists of a single line, is followed by another paragraph span,
+// begins with a capital letter, and contains no punctuation
+// is formatted as a heading.
+//
+// A span of indented lines is converted into a 
 block,
+// with the common indent prefix removed.
 //
 // URLs in the comment text are converted into links; if the URL also appears
 // in the words map, the link is taken from the map (if the corresponding map