From: Caleb Spare Date: Tue, 27 Aug 2013 16:03:38 +0000 (-0700) Subject: go/ast: fix comment formatting X-Git-Tag: go1.2rc2~416 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=8b047893a08f316a5f5179e2d71b45a068c9108a;p=gostls13.git go/ast: fix comment formatting A bullet list was getting mangled in godoc. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/13060047 --- diff --git a/src/pkg/go/ast/commentmap.go b/src/pkg/go/ast/commentmap.go index 252d460af9..1fb4867dd2 100644 --- a/src/pkg/go/ast/commentmap.go +++ b/src/pkg/go/ast/commentmap.go @@ -129,11 +129,11 @@ func (s *nodeStack) pop(pos token.Pos) (top Node) { // // A comment group g is associated with a node n if: // -// - g starts on the same line as n ends -// - g starts on the line immediately following n, and there is -// at least one empty line after g and before the next node -// - g starts before n and is not associated to the node before n -// via the previous rules +// - g starts on the same line as n ends +// - g starts on the line immediately following n, and there is +// at least one empty line after g and before the next node +// - g starts before n and is not associated to the node before n +// via the previous rules // // NewCommentMap tries to associate a comment group to the "largest" // node possible: For instance, if the comment is a line comment