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

View File

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

View File

@ -119,12 +119,12 @@
</div> </div>
</div> </div>
<div class="user-profile-decription"> <div class="user-profile-decription">
{{EmojiFilter .User.Note .User.Emojis | Raw}} {{- EmojiFilter .User.Note .User.Emojis | Raw -}}
</div> </div>
{{if .User.Fields}} {{if .User.Fields}}
<div class="user-fields"> <div class="user-fields">
{{range .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}} {{end}}
</div> </div>
{{end}} {{end}}