-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
x/pkgsite: const block comment not rendered in some cases #38699
Comments
/cc @dmitshur |
Thanks for reporting. This is due to a limitation of the algorithm used to trim excessively large string literals and slices (see relevant code here). Documentation rendering on pkg.go.dev used the same algorithm as on godoc.org, so it was equally affected. I've looked into it, and it is possible to resolve this issue. I'll send a fix. |
Change https://golang.org/cl/240217 mentions this issue: |
This is fixed for this package, but see #42425 for ongoing (minor) formatting issues. |
What is the URL of the page with the issue?
https://pkg.go.dev/github.com/reddit/baseplate.go@v0.0.0-20200427171913-839af98823fe/httpbp?tab=doc#pkg-constants, the first const block
What did you expect to see?
The code actually have comments on them, but they are not rendered in go.dev.
One thing to note is that they are not rendered on godoc.org either. I think it might has something to do with the long string const?
The text was updated successfully, but these errors were encountered: