diff --git a/godoc/static/package.html b/godoc/static/package.html index bf9cd1fe..067cfc2a 100644 --- a/godoc/static/package.html +++ b/godoc/static/package.html @@ -151,15 +151,15 @@ {{with .Consts}}
{{node_html $ .Decl true}}
{{comment_html .Doc}}
+ {{node_html $ .Decl true}}
{{end}}
{{end}}
{{with .Vars}}
{{node_html $ .Decl true}}
{{comment_html .Doc}}
+ {{node_html $ .Decl true}}
{{end}}
{{end}}
{{range .Funcs}}
@@ -168,8 +168,8 @@
{{node_html $ .Decl true}}
{{comment_html .Doc}}
+ {{node_html $ .Decl true}}
{{example_html $ .Name}}
{{callgraph_html $ "" .Name}}
@@ -180,17 +180,17 @@
{{node_html $ .Decl true}}
{{comment_html .Doc}}
+ {{node_html $ .Decl true}}
{{range .Consts}}
- {{node_html $ .Decl true}}
{{comment_html .Doc}}
+ {{node_html $ .Decl true}}
{{end}}
{{range .Vars}}
- {{node_html $ .Decl true}}
{{comment_html .Doc}}
+ {{node_html $ .Decl true}}
{{end}}
{{example_html $ $tname}}
@@ -202,8 +202,8 @@
{{node_html $ .Decl true}}
{{comment_html .Doc}}
+ {{node_html $ .Decl true}}
{{example_html $ .Name}}
{{callgraph_html $ "" .Name}}
{{end}}
@@ -213,8 +213,8 @@
{{node_html $ .Decl true}}
{{comment_html .Doc}}
+ {{node_html $ .Decl true}}
{{$name := printf "%s_%s" $tname .Name}}
{{example_html $ $name}}
{{callgraph_html $ .Recv .Name}}
diff --git a/godoc/static/static.go b/godoc/static/static.go
index 923270a1..f6e267e6 100644
--- a/godoc/static/static.go
+++ b/godoc/static/static.go
@@ -1599,8 +1599,8 @@ function cgAddChild(tree, ul, cgn) {
{{if $.IsMain}}
- {{/* command documentation */}}
{{comment_html .Doc}}
+ {{/* command documentation */}}
{{else}}
{{/* package documentation */}}