Trim output before inserting

This commit is contained in:
Jeremy Dormitzer 2024-08-28 09:41:54 -04:00
parent 59ab43f820
commit 9a1f0aea68

View File

@ -313,7 +313,9 @@
(lambda () (lambda ()
(with-current-buffer buf (with-current-buffer buf
(delete-region start end) (delete-region start end)
(insert-buffer-substring temp-buffer) (insert (with-current-buffer temp-buffer
(string-trim
(buffer-substring-no-properties (point-min) (point-max)))))
(goto-char (point-min)) (goto-char (point-min))
(forward-line (1- line)) (forward-line (1- line))
(move-to-column col) (move-to-column col)