mirror of
https://github.com/golang/go
synced 2024-11-25 14:27:57 -07:00
don't show semicolons anymore with godoc
R=rsc https://golang.org/cl/174078
This commit is contained in:
parent
6112e809d2
commit
8793f622e6
@ -458,7 +458,7 @@ func (s *Styler) Token(tok token.Token) (text []byte, tag printer.HTMLTag) {
|
|||||||
|
|
||||||
// Write an AST-node to w; optionally html-escaped.
|
// Write an AST-node to w; optionally html-escaped.
|
||||||
func writeNode(w io.Writer, node interface{}, html bool, styler printer.Styler) {
|
func writeNode(w io.Writer, node interface{}, html bool, styler printer.Styler) {
|
||||||
mode := printer.UseSpaces;
|
mode := printer.UseSpaces | printer.NoSemis;
|
||||||
if html {
|
if html {
|
||||||
mode |= printer.GenHTML
|
mode |= printer.GenHTML
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user