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 internal: fix some comments 2023-02-09 20:53:57 +00:00
browser x/pkgsite: add -open to open browser 2023-05-12 18:33:08 +00:00
cache internal: add build tags guarding code that doesn't build on plan9 2023-07-10 16:44:05 +00:00
config internal/config: separate config initialization into serverconfig 2023-08-25 19:08:11 +00:00
cookie internal/cookie: fix error return bug 2021-02-17 12:11:59 +00:00
database internal/config: separate config initialization into serverconfig 2023-08-25 19:08:11 +00:00
dcensus internal/worker: improve home and debug pages 2024-02-27 12:03:34 +00:00
derrors internal/testing/fakedatasource: implement PostgresDB interface 2023-08-22 22:44:37 +00:00
experiment internal: fix some comments 2023-02-09 20:53:57 +00:00
fetch internal/fetch,godoc: handle lint exceptions 2024-09-05 13:10:54 +00:00
fetchdatasource all: fix function names in comment 2024-04-16 22:18:14 +00:00
frontend all: fix printf(var) mistake detected by latest printf checker 2024-09-05 03:04:40 +00:00
fuzzy cmd/pkgsite: add multi-module support, invalidation, and search 2023-03-14 15:09:52 +00:00
godoc internal/godoc/dochtml: enhance output parsing for example func 2024-09-13 13:08:37 +00:00
index internal: rename tc to test 2020-11-20 17:06:53 +00:00
licenses several: use stdlib functions 2024-09-04 12:20:54 +00:00
log internal/middleware,etc.: store requests 2024-03-01 15:36:33 +00:00
lru internal/lru: add a really simple LRU cache implementation 2023-08-30 20:21:49 +00:00
memory internal/memory: skip TestRead on non-linux platforms 2023-07-06 20:26:36 +00:00
middleware go.mod: upgrade to go 1.23 2024-09-04 11:03:35 +00:00
osv internal/vuln,static/frontend: display custom versions on vuln pages 2024-07-15 15:20:26 +00:00
poller internal/poller: try test for longer and longer intervals 2023-09-01 02:57:48 +00:00
postgres internal/postgres: insert module path even if not a package 2024-09-04 17:48:17 +00:00
proxy all: fix function names in comment 2024-04-16 22:18:14 +00:00
queue all: migrate to cloud.google.com message types 2023-09-06 21:31:34 +00:00
sanitizer internal/sanitizer: be more flexible with what we allow 2023-12-07 19:37:31 +00:00
secrets all: migrate to cloud.google.com message types 2023-09-06 21:31:34 +00:00
source internal/source: move some tests into another package 2023-11-07 18:10:24 +00:00
static internal: remove repetitive words 2023-07-18 05:15:36 +00:00
stdlib internal/stdlib: remove support for special branches 2024-02-21 14:58:05 +00:00
symbol all: fix printf(var) mistake detected by latest printf checker 2024-09-05 03:04:40 +00:00
testenv internal/stdlib: remove dependency on github.com/go-git/go-git/v5 2023-07-19 19:15:57 +00:00
testing internal/postgres: support module@version exclusions 2024-02-21 20:50:14 +00:00
tests internal/tests/deps: skip test if we can't run go command 2024-01-03 19:55:40 +00:00
trace internal/middleware,etc.: store requests 2024-03-01 15:36:33 +00:00
version all: gofmt 2022-04-11 21:55:57 +00:00
vuln internal/vuln,static/frontend: display custom versions on vuln pages 2024-07-15 15:20:26 +00:00
worker worker: display request state on main page 2024-03-05 19:44:05 +00:00
xcontext internal/xcontext: avoid assumptions about test timing in TestDetach 2023-08-08 22:30:22 +00:00
build_context.go internal/postgres: read only one doc source from DB 2021-04-29 21:01:19 +00:00
build_context_test.go internal: support "all" in BuildContext 2021-02-08 16:18:02 +00:00
datasource.go cmd/pkgsite: hide irrelevant content in local mode; add quick links 2023-03-15 16:18:06 +00:00
discovery.go all: gofmt 2022-04-11 21:55:57 +00:00
discovery_test.go internal/{postgres,frontend}: group search results 2021-05-06 13:18:15 +00:00
domain.go internal: do not default gopkg.in paths to symbol mode 2021-09-01 15:55:54 +00:00
experiment.go internal/frontend,static/frontend: remove styleguide 2024-02-26 16:35:55 +00:00
interfaces.go internal/postgres: support module@version exclusions 2024-02-21 20:50:14 +00:00
latest.go internal/postgres: insert new latest_module_versions columns 2021-04-06 16:49:40 +00:00
latest_test.go internal: add LatestModuleVersions.IsRetracted method 2021-03-04 18:20:47 +00:00
nonredist.go internal: delete LegacyPackage 2020-10-26 13:05:48 +00:00
paths.go internal: remove gopkg.in from three-element vcs hosts 2021-11-23 21:02:07 +00:00
paths_test.go internal: CandidateModulePaths checks for valid module paths 2021-09-15 17:07:58 +00:00
request_info.go worker: display request state on main page 2024-03-05 19:44:05 +00:00
symbol.go internal: delete stray print 2021-08-05 16:00:36 +00:00
unit.go internal/fetch: handle error in root package 2024-02-14 17:07:49 +00:00
util.go internal: fix some comments 2023-02-09 20:53:57 +00:00