* lisp/play/fortune.el (fortune-message):
Avoid trailing newline. (Bug#30887)
This commit is contained in:
parent
20db48089b
commit
03a27fab69
1 changed files with 2 additions and 0 deletions
|
@ -313,6 +313,8 @@ Optional FILE is a fortune file from which a cookie will be selected."
|
|||
(with-temp-buffer
|
||||
(let ((fortune-buffer-name (current-buffer)))
|
||||
(fortune-in-buffer t file)
|
||||
;; Avoid trailing newline.
|
||||
(if (bolp) (delete-char -1))
|
||||
(message "%s" (buffer-string)))))
|
||||
|
||||
;;;###autoload
|
||||
|
|
Loading…
Add table
Reference in a new issue