aboutsummaryrefslogtreecommitdiff
path: root/layouts
diff options
context:
space:
mode:
Diffstat (limited to 'layouts')
-rw-r--r--layouts/_default/single.gmi2
-rw-r--r--layouts/_default/single.html2
2 files changed, 2 insertions, 2 deletions
diff --git a/layouts/_default/single.gmi b/layouts/_default/single.gmi
index ab94304..cc98bc6 100644
--- a/layouts/_default/single.gmi
+++ b/layouts/_default/single.gmi
@@ -7,7 +7,7 @@
{{ end -}}
# {{ .Name | safeHTML }}
-{{ $content := .RawContent -}}
+{{ $content := chomp (.RawContent) -}}
{{ $scratch := newScratch -}}
{{/* split text into chunks, with each chunk containing 3 parts: above, within, and below preformatted text */ -}}
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
index 52e7ad4..2819d29 100644
--- a/layouts/_default/single.html
+++ b/layouts/_default/single.html
@@ -6,6 +6,6 @@
<p>{{ partial "pageinfo.html" . }}</p>{{ end }}
<main>
<h1 id="{{ .File.TranslationBaseName }}">{{ .Name }}</h1>
- {{ .Content -}}
+ {{ chomp (.Content) -}}
</main>
{{- end }} \ No newline at end of file