From e5fe3a6cc9c4962b68d1d408214f8e3d7b80353c Mon Sep 17 00:00:00 2001 From: Juanma Barranquero Date: Wed, 8 Mar 2006 10:11:47 +0000 Subject: [PATCH] (view-lossage): Remove trailing whitespace before inserting "\n". --- lisp/help.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lisp/help.el b/lisp/help.el index a39d344dc04..5eef13ff9c9 100644 --- a/lisp/help.el +++ b/lisp/help.el @@ -429,8 +429,9 @@ To record all your input on a file, use `open-dribble-file'." (with-current-buffer standard-output (goto-char (point-min)) (while (progn (move-to-column 50) (not (eobp))) - (search-forward " " nil t) - (insert "\n"))) + (when (search-forward " " nil t) + (delete-char -1)) + (insert "\n"))) (print-help-return-message))) -- 2.39.2