From ae71b7b379ef3346995ebc821ad284727292958d Mon Sep 17 00:00:00 2001 From: Alan Ye <45558679+at-wr@users.noreply.github.com> Date: Sun, 14 Apr 2024 11:50:37 +0800 Subject: [PATCH] Remove extra spaces and multiple spaces --- app/views/accounts/show.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/accounts/show.html.haml b/app/views/accounts/show.html.haml index 3c3cdf48634..9aece1d75c4 100644 --- a/app/views/accounts/show.html.haml +++ b/app/views/accounts/show.html.haml @@ -1,5 +1,5 @@ - content_for :page_title do - display_name(@account).gsub(/:\w+:/, '') + " (#{acct(@account)})" + "#{display_name(@account).gsub(/:\w+:/, '').strip} (#{acct(@account)})".gsub(/\s+/, ' ') - content_for :header_tags do - if @account.user_prefers_noindex?