aboutsummaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorAlexander Griffith <griffitaj@gmail.com>2017-05-16 00:41:43 -0400
committerJohnson Denen <johnson.denen@gmail.com>2017-05-16 12:44:25 -0400
commit72b2688030b8e1e2c81d1a9772aad35d1bf8ec7f (patch)
tree44c3a414159f20e933cd0387c5dc672f935269ca /lisp
parent588c07b170549762713e6c920c21c3a8396cbfba (diff)
fixed #133 replaced regex with a trim function
Diffstat (limited to 'lisp')
-rw-r--r--lisp/mastodon-tl.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index b48c8fe..b00622b 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -211,7 +211,8 @@ also render the html"
(insert
(concat
(mastodon-tl--spoiler toot)
- (replace-regexp-in-string "^\n+$" "" (mastodon-tl--content toot))
+ ;; remove two trailing newlines
+ (substring (mastodon-tl--content toot) 0 -2)
(mastodon-tl--media toot)
"\n\n"
(mastodon-tl--byline toot)