pkgsite/internal/godoc
Weida Hong 7d0ea0a0e8 internal/godoc/dochtml: enhance output parsing for example func
Current logic for detecting "concluding line comment" is not strict
enough that it may cause false-positive, causing some normal comment
(and code following it) to be discarded in the rendered web page.

Ensure that "concluding line comment" can only be prefixed by spaces.
Also add corresponding test case.

Fixes golang/go#65450

Change-Id: Ief9ec5326aa94965ca02d3278398cc5663ba395f
GitHub-Last-Rev: 7312ff3dff
GitHub-Pull-Request: golang/pkgsite#93
Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/600415
kokoro-CI: kokoro <noreply+kokoro@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Robert Findley <rfindley@google.com>
Reviewed-by: Alan Donovan <adonovan@google.com>
2024-09-13 13:08:37 +00:00
..
codec internal/fetch,godoc: handle lint exceptions 2024-09-05 13:10:54 +00:00
dochtml internal/godoc/dochtml: enhance output parsing for example func 2024-09-13 13:08:37 +00:00
internal/lazyregexp
testdata
encode.go
encode_ast.gen.go internal/fetch,godoc: handle lint exceptions 2024-09-05 13:10:54 +00:00
encode_test.go internal/fetch,godoc: handle lint exceptions 2024-09-05 13:10:54 +00:00
gen_ast.go
godoc.go
godoc_test.go
render.go
render_test.go