From 72b2688030b8e1e2c81d1a9772aad35d1bf8ec7f Mon Sep 17 00:00:00 2001 From: Alexander Griffith Date: Tue, 16 May 2017 00:41:43 -0400 Subject: fixed #133 replaced regex with a trim function --- lisp/mastodon-tl.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp') 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) -- cgit v1.2.3