aboutsummaryrefslogtreecommitdiffstats
path: root/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'template.go')
-rw-r--r--template.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/template.go b/template.go
index cdef279..93777b2 100644
--- a/template.go
+++ b/template.go
@@ -50,7 +50,7 @@ var tpltext = `<!doctype html>
50 </div> 50 </div>
51 </header> 51 </header>
52 <main class="wrap"> 52 <main class="wrap">
53 <pre class="content"> 53 <pre class="content{{ if .Lines }} content--has-type-annotations{{ end }}">
54 {{- if .Lines -}} 54 {{- if .Lines -}}
55 {{- $content := "" -}} 55 {{- $content := "" -}}
56 {{- range .Lines -}} 56 {{- range .Lines -}}
@@ -60,7 +60,7 @@ var tpltext = `<!doctype html>
60 {{- if .Link -}} 60 {{- if .Link -}}
61 {{- $content = printf "%s%s" $content (printf "<span class=\"type-annotation\">%s </span><a class=\"link link--%s\" href=\"%s\">%s</a>" .Type .Type .Link (.Text | HTMLEscape)) -}} 61 {{- $content = printf "%s%s" $content (printf "<span class=\"type-annotation\">%s </span><a class=\"link link--%s\" href=\"%s\">%s</a>" .Type .Type .Link (.Text | HTMLEscape)) -}}
62 {{- else -}} 62 {{- else -}}
63 {{- $content = printf "%s%s" $content (printf " %s" (.Text | HTMLEscape)) -}} 63 {{- $content = printf "%s%s" $content (printf "<span class=\"type-annotation\"> </span>%s" (.Text | HTMLEscape)) -}}
64 {{- end -}} 64 {{- end -}}
65 {{- end -}} 65 {{- end -}}
66 {{- $content | safeHtml -}} 66 {{- $content | safeHtml -}}