From 63120440fa0e7c981c22d687a778b5143fc18639 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Tue, 20 Feb 2024 19:42:17 +0100 Subject: string-trim-left on remove-docs --- lisp/mastodon-toot.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 97949cd..7ff3c34 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -812,7 +812,8 @@ to `emojify-user-emojis', and the emoji data is updated." "Get the body of a toot from the current compose buffer." (let ((header-region (mastodon-tl--find-property-range 'toot-post-header (point-min)))) - (buffer-substring (cdr header-region) (point-max)))) + (string-trim-left + (buffer-substring (cdr header-region) (point-max))))) (defun mastodon-toot--build-poll-params () "Return an alist of parameters for POSTing a poll status." -- cgit v1.2.3