commit | 25aa26ec8e5c9f8d284c26b6aaf790d62fb411e9 | [log] [tgz] |
---|---|---|
author | Jonathan Amsterdam <jba@google.com> | Tue Apr 19 07:10:19 2022 -0400 |
committer | Jonathan Amsterdam <jba@google.com> | Tue Apr 19 16:03:18 2022 +0000 |
tree | d85d6d789a2e21a5a2eb04bc2852c38b9a9f6a65 | |
parent | c63e76175e290be90168e55350f5053f75e3f27a [diff] |
internal/godoc/dochtml: only recognize "Deprecated" at paragraph start Treat a function or method as deprecated only if the string "Deprecated:" occurs at the start of a paragraph. Previously, we looked for it at the start of a line. Also, remove the "deprecated-off" golden file because it was no longer used. Fixes golang/go#46913. Change-Id: I0d16598915677e17565e9944ce67092dcdd208f5 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/400994 Run-TryBot: Jonathan Amsterdam <jba@google.com> TryBot-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: Jamal Carvalho <jamal@golang.org> Reviewed-by: Robert Findley <rfindley@google.com>
Pkg.go.dev is a website for discovering and evaluating Go packages and modules.
You can check it out at https://pkg.go.dev.
Pkgsite requires Go 1.18 to run. The last commit that works with older versions of Go is 4d836c6a652cde92f433967680dfd6171a91ec12.
If you want to report a bug or have a feature suggestion, please first check the known issues to see if your issue is already being discussed. If an issue does not already exist, feel free to file an issue.
For answers to frequently asked questions, see pkg.go.dev/about.
You can also chat with us on the #pkgsite Slack channel on the Gophers Slack.
We would love your help!
Our canonical Git repository is located at go.googlesource.com/pkgsite. There is a mirror of the repository at github.com/golang/pkgsite.
To contribute, please read our contributing guide.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.