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:26:58 +0100
commit907c8f7e86277d36eb1eac99ba8abe2b848eed57 (patch)
tree068b0ddee8258648200b3a4201c80c16d0049033
parentac192b47f90bbea9682c4c47c0188d9678665cfc (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 e8025ed..98e5090 100644
--- a/lisp/mastodon-profile.el
+++ b/lisp/mastodon-profile.el
@@ -218,6 +218,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 ()