summaryrefslogtreecommitdiffstats
path: root/tpl/tplimpl/embedded/templates.autogen.go
diff options
context:
space:
mode:
authorJoe Mooring <joe.mooring@veriphor.com>2021-04-09 19:03:01 -0700
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2021-04-15 14:43:32 +0200
commit9b34d42bb2ff05deaeeef63ff4b5b993f35f0451 (patch)
tree8011eac37b3b4c1c2e625015ebf6eedb87967484 /tpl/tplimpl/embedded/templates.autogen.go
parentc2d8f87cfc1c4ae666fbb1fb5b8983d43492333f (diff)
Remove extraneous space from figure shortcode
Fixes #8401
Diffstat (limited to 'tpl/tplimpl/embedded/templates.autogen.go')
-rw-r--r--tpl/tplimpl/embedded/templates.autogen.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/tplimpl/embedded/templates.autogen.go b/tpl/tplimpl/embedded/templates.autogen.go
index 1391e8956..2da6e619e 100644
--- a/tpl/tplimpl/embedded/templates.autogen.go
+++ b/tpl/tplimpl/embedded/templates.autogen.go
@@ -366,14 +366,14 @@ if (!doNotTrack) {
{`shortcodes/figure.html`, `<figure{{ with .Get "class" }} class="{{ . }}"{{ end }}>
{{- if .Get "link" -}}
<a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}>
- {{- end }}
+ {{- end -}}
<img src="{{ .Get "src" }}"
{{- if or (.Get "alt") (.Get "caption") }}
alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}"
{{- end -}}
{{- with .Get "width" }} width="{{ . }}"{{ end -}}
{{- with .Get "height" }} height="{{ . }}"{{ end -}}
- /> <!-- Closing img tag -->
+ /><!-- Closing img tag -->
{{- if .Get "link" }}</a>{{ end -}}
{{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}}
<figcaption>