From 7071165d04aa3faa3b81a4f00597144a91a73d8e Mon Sep 17 00:00:00 2001 From: alyssa Date: Fri, 2 Apr 2021 00:15:28 +0000 Subject: [PATCH] fix random blank space on post content --- templates/status.tmpl | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/templates/status.tmpl b/templates/status.tmpl index 966309e..1604fb3 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -87,16 +87,18 @@ {{end}} {{end}} - {{if .Content}} - {{if .SpoilerText}} -
- {{.SpoilerText}} - {{template "postcontent.tmpl" (WithContext $s $.Ctx)}} -
- {{else}} - {{template "postcontent.tmpl" (WithContext $s $.Ctx)}} - {{end}} - {{end}} +
+ {{if .Content}} + {{if .SpoilerText}} +
+ {{.SpoilerText}} + {{template "postcontent.tmpl" (WithContext $s $.Ctx)}} +
+ {{else}} + {{template "postcontent.tmpl" (WithContext $s $.Ctx)}} + {{end}} + {{end}} +