aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnson Denen <johnson.denen@gmail.com>2017-05-15 12:45:18 -0400
committerJohnson Denen <johnson.denen@gmail.com>2017-05-15 13:43:46 -0400
commit588c07b170549762713e6c920c21c3a8396cbfba (patch)
tree7d8a690cc390270d58bb867c1927d751253fe59a
parent38d3b3c1850b38129c097ac316971ba34a8c4245 (diff)
Fix #131 with refined regexp pattern
-rw-r--r--lisp/mastodon-tl.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 85e0519..b48c8fe 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -211,7 +211,7 @@ also render the html"
(insert
(concat
(mastodon-tl--spoiler toot)
- (replace-regexp-in-string "\n*$" "" (mastodon-tl--content toot))
+ (replace-regexp-in-string "^\n+$" "" (mastodon-tl--content toot))
(mastodon-tl--media toot)
"\n\n"
(mastodon-tl--byline toot)