pkgsite/internal
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
..
auth
browser
cache
config
cookie
database
dcensus
derrors
experiment
fetch
fetchdatasource
frontend
fuzzy
godoc
index
licenses
log
lru
memory
middleware
osv
poller
postgres
proxy
queue
sanitizer
secrets
source
static
stdlib
symbol
testenv
testing
tests
trace
version
vuln
worker
xcontext
build_context.go
build_context_test.go
datasource.go
discovery.go
discovery_test.go
domain.go
experiment.go
interfaces.go
latest.go
latest_test.go
nonredist.go
paths.go
paths_test.go
request_info.go
symbol.go
unit.go
util.go