From 8eec93e02861ff0d133d8ba5613e2dedbcee40a2 Mon Sep 17 00:00:00 2001 From: r Date: Fri, 8 Sep 2023 17:55:29 +0000 Subject: Trim leading and trailing white space from selectable text --- templates/nav.tmpl | 4 ++-- templates/notification.tmpl | 14 +++++++------- templates/requestlist.tmpl | 4 ++-- templates/status.tmpl | 12 ++++++------ templates/user.tmpl | 8 ++++---- templates/userlistitem.tmpl | 4 ++-- 6 files changed, 23 insertions(+), 23 deletions(-) (limited to 'templates') diff --git a/templates/nav.tmpl b/templates/nav.tmpl index db88aa0..4413823 100644 --- a/templates/nav.tmpl +++ b/templates/nav.tmpl @@ -8,9 +8,9 @@
- {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} + {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} followed you -
- @{{.Account.Acct}} + @{{.Account.Acct}}
@@ -48,13 +48,13 @@
- {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} + {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} wants to follow you -
- @{{.Account.Acct}} + @{{.Account.Acct}}
@@ -79,7 +79,7 @@ avatar - @{{.Account.Acct}} + @{{.Account.Acct}} retweeted your post - @@ -93,7 +93,7 @@ avatar - @{{.Account.Acct}} + @{{.Account.Acct}} liked your post - @@ -107,7 +107,7 @@ avatar - @{{.Account.Acct}} + @{{.Account.Acct}} {{.Type}} - diff --git a/templates/requestlist.tmpl b/templates/requestlist.tmpl index 1a51e31..f0b2dee 100644 --- a/templates/requestlist.tmpl +++ b/templates/requestlist.tmpl @@ -9,9 +9,9 @@
-
{{EmojiFilter (HTML .DisplayName) .Emojis | Raw}}
+
{{EmojiFilter (HTML .DisplayName) .Emojis | Raw}}
-
@{{.Acct}}
+
{{.Acct}}
diff --git a/templates/status.tmpl b/templates/status.tmpl index 5ada84e..0b09dfb 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -5,9 +5,9 @@ avatar - {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} + {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} - @{{.Account.Acct}} + @{{.Account.Acct}} retweeted
@@ -23,9 +23,9 @@
- {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} + {{EmojiFilter (HTML .Account.DisplayName) .Account.Emojis | Raw}} - @{{.Account.Acct}} + @{{.Account.Acct}}
{{if (or .Content .SpoilerText)}}
- {{if .SpoilerText}}{{EmojiFilter (HTML .SpoilerText) .Emojis | Raw}}
{{end}} - {{StatusContentFilter .Content .Emojis .Mentions | Raw}} + {{- if .SpoilerText}}{{EmojiFilter (HTML .SpoilerText) .Emojis | Raw}}
{{end -}} + {{- StatusContentFilter .Content .Emojis .Mentions | Raw -}}
{{end}} {{if .MediaAttachments}} diff --git a/templates/user.tmpl b/templates/user.tmpl index 3146964..3adc1a0 100644 --- a/templates/user.tmpl +++ b/templates/user.tmpl @@ -10,8 +10,8 @@
{{if .User.Fields}}
{{range .User.Fields}} -
{{EmojiFilter .Name $.Data.User.Emojis | Raw}} - {{EmojiFilter .Value $.Data.User.Emojis | Raw}}
+
{{- EmojiFilter .Name $.Data.User.Emojis | Raw}} - {{EmojiFilter .Value $.Data.User.Emojis | Raw -}}
{{end}}
{{end}} diff --git a/templates/userlistitem.tmpl b/templates/userlistitem.tmpl index 50b9d0c..ed53b2e 100644 --- a/templates/userlistitem.tmpl +++ b/templates/userlistitem.tmpl @@ -6,9 +6,9 @@
-
{{EmojiFilter (HTML .DisplayName) .Emojis | Raw}}
+
{{EmojiFilter (HTML .DisplayName) .Emojis | Raw}}
-
@{{.Acct}}
+
@{{.Acct}}
-- cgit v1.2.3