]> Cypherpunks repositories - gostls13.git/commit
go/doc/comment: parse and print lists
authorRuss Cox <rsc@golang.org>
Sun, 3 Apr 2022 20:45:18 +0000 (16:45 -0400)
committerRuss Cox <rsc@golang.org>
Mon, 11 Apr 2022 16:31:48 +0000 (16:31 +0000)
commite1b0862925c8ed97bdaf9277f4a2ba38e0b58cbe
tree5c17b6eb0d6217729d2c3d4204cf86c1f06fe431
parent3f5d099663fab4a59133bbe7643f40deb5460509
go/doc/comment: parse and print lists

[This CL is part of a sequence implementing the proposal #51082.
The design doc is at https://go.dev/s/godocfmt-design.]

Implement lists, like:

Three numbers:

  - One
  - Two
  - Three

For #51082.

Change-Id: Id87d9c19bca677be968f3803809a9ea6c705f3ad
Reviewed-on: https://go-review.googlesource.com/c/go/+/397286
Run-TryBot: Russ Cox <rsc@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
15 files changed:
src/go/doc/comment/html.go
src/go/doc/comment/markdown.go
src/go/doc/comment/parse.go
src/go/doc/comment/print.go
src/go/doc/comment/testdata/list.txt [new file with mode: 0644]
src/go/doc/comment/testdata/list2.txt [new file with mode: 0644]
src/go/doc/comment/testdata/list3.txt [new file with mode: 0644]
src/go/doc/comment/testdata/list4.txt [new file with mode: 0644]
src/go/doc/comment/testdata/list5.txt [new file with mode: 0644]
src/go/doc/comment/testdata/list6.txt [new file with mode: 0644]
src/go/doc/comment/testdata/list7.txt [new file with mode: 0644]
src/go/doc/comment/testdata/list8.txt [new file with mode: 0644]
src/go/doc/comment/testdata/text.txt [new file with mode: 0644]
src/go/doc/comment/testdata/text8.txt [new file with mode: 0644]
src/go/doc/comment/text.go