Trim leading and trailing white space from selectable text

This commit is contained in:
r 2023-09-08 17:55:29 +00:00
parent 461908e031
commit 8eec93e028
6 changed files with 23 additions and 23 deletions

View File

@ -11,7 +11,7 @@
<div>
<div class="status-dname">{{EmojiFilter (HTML .DisplayName) .Emojis | Raw}}</div>
<a class="img-link" href="/user/{{.ID}}">
<div class="status-uname"> @{{.Acct}} </div>
<div class="status-uname">{{.Acct}}</div>
</a>
</div>
<form class="d-inline" action="/accept/{{.ID}}" method="post" target="_self">

View File

@ -92,8 +92,8 @@
</div>
{{if (or .Content .SpoilerText)}}
<div class="status-content">
{{if .SpoilerText}}{{EmojiFilter (HTML .SpoilerText) .Emojis | Raw}}<br/>{{end}}
{{StatusContentFilter .Content .Emojis .Mentions | Raw}}
{{- if .SpoilerText}}{{EmojiFilter (HTML .SpoilerText) .Emojis | Raw}}<br/>{{end -}}
{{- StatusContentFilter .Content .Emojis .Mentions | Raw -}}
</div>
{{end}}
{{if .MediaAttachments}}

View File

@ -119,12 +119,12 @@
</div>
</div>
<div class="user-profile-decription">
{{EmojiFilter .User.Note .User.Emojis | Raw}}
{{- EmojiFilter .User.Note .User.Emojis | Raw -}}
</div>
{{if .User.Fields}}
<div class="user-fields">
{{range .User.Fields}}
<div>{{EmojiFilter .Name $.Data.User.Emojis | Raw}} - {{EmojiFilter .Value $.Data.User.Emojis | Raw}}</div>
<div>{{- EmojiFilter .Name $.Data.User.Emojis | Raw}} - {{EmojiFilter .Value $.Data.User.Emojis | Raw -}}</div>
{{end}}
</div>
{{end}}