Skip to content

Commit

Permalink
fix(buffer): trim extra spaces in +fill-scratch-buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jun 14, 2023
1 parent cae91b2 commit 4887558
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion elisp/+buffer.el
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ When available, use \"fortune\" to add a random quote."
;; Insert a random quote from "fortune" when the command is available
(when (executable-find "fortune")
(insert (string-join
(mapcar (apply-partially #'concat ";; ")
(mapcar (lambda (line) (string-trim-right (concat ";; " line)))
(string-lines (shell-command-to-string "fortune")))
"\n"))
(insert "\n;; ==============================\n"))
Expand Down

0 comments on commit 4887558

Please sign in to comment.