]> Cypherpunks repositories - gostls13.git/commit
go/doc: restore handling of multi-paragraph BUG comments
authorRuss Cox <rsc@golang.org>
Tue, 10 Sep 2013 18:41:20 +0000 (14:41 -0400)
committerRuss Cox <rsc@golang.org>
Tue, 10 Sep 2013 18:41:20 +0000 (14:41 -0400)
commit6706931a71fd3dfece6d1f9794a04d378cccd57b
treee36c0394d72b9e0b214b97c9777b17bbbec0c524
parent159c2b7e46f0b8293f1eed66ebec70ca845ac591
go/doc: restore handling of multi-paragraph BUG comments

It was lost when the generic "Notes" support went in.

Had to change the test setup, because it precluded even
being able test multi-line comments, much less multi-paragraph
comments.

Now 'godoc sync/atomic' works correctly again.

Fixes #6135.

R=golang-dev, bradfitz
CC=golang-dev
https://golang.org/cl/13427045
src/pkg/go/doc/doc_test.go
src/pkg/go/doc/reader.go
src/pkg/go/doc/synopsis.go
src/pkg/go/doc/testdata/a.0.golden
src/pkg/go/doc/testdata/a.1.golden
src/pkg/go/doc/testdata/a.2.golden
src/pkg/go/doc/testdata/bugpara.0.golden [new file with mode: 0644]
src/pkg/go/doc/testdata/bugpara.1.golden [new file with mode: 0644]
src/pkg/go/doc/testdata/bugpara.2.golden [new file with mode: 0644]
src/pkg/go/doc/testdata/bugpara.go [new file with mode: 0644]
src/pkg/go/doc/testdata/template.txt