From 588c07b170549762713e6c920c21c3a8396cbfba Mon Sep 17 00:00:00 2001 From: Johnson Denen Date: Mon, 15 May 2017 12:45:18 -0400 Subject: Fix #131 with refined regexp pattern --- lisp/mastodon-tl.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp') 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) -- cgit v1.2.3