зеркало из https://github.com/golang/pkgsite.git
7d0ea0a0e8
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:
|
||
---|---|---|
.. | ||
codec | ||
dochtml | ||
internal/lazyregexp | ||
testdata | ||
encode.go | ||
encode_ast.gen.go | ||
encode_test.go | ||
gen_ast.go | ||
godoc.go | ||
godoc_test.go | ||
render.go | ||
render_test.go |