diff --git a/internal/godoc/dochtml/dochtml_test.go b/internal/godoc/dochtml/dochtml_test.go index 9b443b418..271142caa 100644 --- a/internal/godoc/dochtml/dochtml_test.go +++ b/internal/godoc/dochtml/dochtml_test.go @@ -178,6 +178,32 @@ func main() { 0 1 + +
package main + +import ( + "fmt" +) + +func main() { + fmt.Println("hello") +} ++
Output:{{"\n\n"}}{{- .Output -}}{{"\n" -}} + {{- if .Output -}}
Output:{{"\n\n"}}{{- .Output -}}{{"\n" -}}{{- end -}}