aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-12-21 19:23:44 +0100
committermousebot <mousebot@riseup.net>2021-12-21 19:23:44 +0100
commitcbef7ab3c3b5cb452e9c5409f3fa12cbba0e7558 (patch)
tree889da37dd832eb94389662458b273211e025154c
parent5f28753c3502997ac2e1638d76e5d26b09bc6c15 (diff)
remove all ^M from update profile note buffer
-rw-r--r--lisp/mastodon-profile.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/mastodon-profile.el b/lisp/mastodon-profile.el
index ec9adaa..c7ef718 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -213,6 +213,7 @@ extra keybindings."
(mastodon-profile-update-mode t)
(insert note)
(goto-char (point-min))
+ (delete-trailing-whitespace) ; remove all ^M's
(message "Edit your profile note. C-c C-c to send, C-c C-k to cancel.")))
(defun mastodon-profile--user-profile-send-updated ()