aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-tl.el
diff options
context:
space:
mode:
authormarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-03-23 23:25:14 +0100
committermarty hiatt <martianhiatus [a t] riseup [d o t] net>2023-03-23 23:25:14 +0100
commit300d86f617f80e22a2926313f62ddbd06b992630 (patch)
treeab06adc1232e367ab80f6b24b71dd3c3efde7fd5 /lisp/mastodon-tl.el
parentf42a3aea506b5258dcf3e2b55d211d89f68a6c8a (diff)
replace hypen horiz-bars with unicode masto-tl--horiz-bar if poss
Diffstat (limited to 'lisp/mastodon-tl.el')
-rw-r--r--lisp/mastodon-tl.el21
1 files changed, 13 insertions, 8 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index f557282..fbee377 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -189,6 +189,10 @@ If nil `(point-min)' is used instead.")
(defvar-local mastodon-tl--timestamp-update-timer nil
"The timer that, when set will scan the buffer to update the timestamps.")
+(defvar mastodon-tl--horiz-bar
+ (if (char-displayable-p ?―)
+ (make-string 12 ?―)
+ (make-string 12 ?-)))
;;; KEYMAPS
@@ -625,7 +629,8 @@ this just means displaying toot client."
(mastodon-tl--relative-time-description edited-parsed)
edited-parsed)))
"")
- (propertize "\n ------------" 'face 'default)
+ (propertize (concat "\n " mastodon-tl--horiz-bar)
+ 'face 'default)
(if mastodon-tl--show-stats
(mastodon-tl--toot-stats toot)
"")
@@ -962,13 +967,13 @@ message is a link which unhides/hides the main body."
(mastodon-tl--clean-tabs-and-nl
(mastodon-tl--render-text spoiler toot))
'default))
- (message (concat ;"\n"
- " ---------------\n"
- " " (mastodon-tl--make-link
- (concat "CW: " string)
- 'content-warning)
- "\n"
- " ---------------\n"))
+ (message (concat
+ " " mastodon-tl--horiz-bar "\n "
+ (mastodon-tl--make-link
+ (concat "CW: " string)
+ 'content-warning)
+ "\n "
+ mastodon-tl--horiz-bar "\n"))
(cw (mastodon-tl--set-face message 'mastodon-cw-face)))
(concat
cw