aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-25 12:03:03 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2022-11-25 12:13:30 +0100
commit83231a8e0dbce439e0d98a158291c7be9fb4525b (patch)
tree17fe6ceee279fc349ea3bf348ed711c74ae4c20f
parent143232e53d05bd42560d5ee9265bcb74245a29e2 (diff)
tweak joined date newlines printing + test
-rw-r--r--lisp/mastodon-profile.el9
-rw-r--r--test/mastodon-profile-tests.el3
2 files changed, 8 insertions, 4 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index fa9642e..3ba00b9 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -617,15 +617,18 @@ NO-REBLOGS means do not display boosts in statuses."
" [locked]")
"")
"\n ------------\n"
- (mastodon-tl--render-text note account)
+ ;; profile note:
;; account here to enable tab-stops in profile note
+ (mastodon-tl--render-text note account)
+ ;; meta fields:
(if fields
(concat "\n"
(mastodon-tl--set-face
(mastodon-profile--fields-insert fields)
- 'success)
- "\n")
+ 'success))
"")
+ "\n"
+ ;; Joined date:
(propertize
(mastodon-profile--format-joined-date-string joined)
'face 'success)
diff --git a/test/mastodon-profile-tests.el b/test/mastodon-profile-tests.el
index 7478aaf..d53e1f4 100644
--- a/test/mastodon-profile-tests.el
+++ b/test/mastodon-profile-tests.el
@@ -271,7 +271,8 @@ content generation in the function under test."
"@Gargron\n"
" ------------\n"
"<p>Developer of Mastodon and administrator of mastodon.social. I post service announcements, development updates, and personal stuff.</p>\n"
- "_ Patreon __ :: <a href=\"https://www.patreon.com/mastodon\" rel=\"me nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://www.</span><span class=\"\">patreon.com/mastodon</span><span class=\"invisible\"></span></a>_ Homepage _ :: <a href=\"https://zeonfederated.com\" rel=\"me nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"\">zeonfederated.com</span><span class=\"invisible\"></span></a>\n"
+ "_ Patreon __ :: <a href=\"https://www.patreon.com/mastodon\" rel=\"me nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://www.</span><span class=\"\">patreon.com/mastodon</span><span class=\"invisible\"></span></a>_ Homepage _ :: <a href=\"https://zeonfederated.com\" rel=\"me nofollow noopener noreferrer\" target=\"_blank\"><span class=\"invisible\">https://</span><span class=\"\">zeonfederated.com</span><span class=\"invisible\"></span></a>"
+ "\n"
"Joined March 2016"
"\n\n"
" ------------\n"