* lisp/play/fortune.el (fortune-message):

Avoid trailing newline.  (Bug#30887)
This commit is contained in:
Glenn Morris 2018-03-21 14:10:05 -04:00
parent 20db48089b
commit 03a27fab69

View file

@ -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