emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/mastodon 63120440fa 18/27: string-trim-left on remove-docs


From: ELPA Syncer
Subject: [nongnu] elpa/mastodon 63120440fa 18/27: string-trim-left on remove-docs
Date: Fri, 23 Feb 2024 13:00:56 -0500 (EST)

branch: elpa/mastodon
commit 63120440fa0e7c981c22d687a778b5143fc18639
Author: marty hiatt <martianhiatus@riseup.net>
Commit: marty hiatt <martianhiatus@riseup.net>

    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 97949cdcd2..7ff3c34b07 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."



reply via email to

[Prev in Thread] Current Thread [Next in Thread]