Skip to content
This repository was archived by the owner on Jul 29, 2021. It is now read-only.

Commit af7ede1

Browse files
committed
Fixing a small formatting issue
1 parent b99566c commit af7ede1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ var pkgTemplate = `{{with .PDoc}}
1717
{{comment_md .Doc}}
1818
{{example_html $ ""}}
1919
20-
## <a name="pkg-index">Index</a>
21-
{{- if .Consts}}* [Constants](#pkg-constants){{end}}
22-
{{- if .Vars}}* [Variables](#pkg-variables){{end}}{{- range .Funcs -}}{{$name_html := html .Name}}
20+
## <a name="pkg-index">Index</a>{{if .Consts}}
21+
* [Constants](#pkg-constants){{end}}{{if .Vars}}
22+
* [Variables](#pkg-variables){{end}}{{- range .Funcs -}}{{$name_html := html .Name}}
2323
* [{{node_html $ .Decl false | sanitize}}](#{{$name_html}}){{- end}}{{- range .Types}}{{$tname_html := html .Name}}
2424
* [type {{$tname_html}}](#{{$tname_html}}){{- range .Funcs}}{{$name_html := html .Name}}
2525
* [{{node_html $ .Decl false | sanitize}}](#{{$name_html}}){{- end}}{{- range .Methods}}{{$name_html := html .Name}}

0 commit comments

Comments
 (0)