From dd902c43f3a30baf614986b8126eb30f1e8c6163 Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Fri, 22 Jul 2022 22:43:38 +0200 Subject: [PATCH] Fix spacing in *Help* buttons * lisp/help-mode.el (help-xref--navigation-buttons): Fix spacing before single [forward] button. --- lisp/help-mode.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/help-mode.el b/lisp/help-mode.el index d8d76114f58..f49d20270cf 100644 --- a/lisp/help-mode.el +++ b/lisp/help-mode.el @@ -678,9 +678,10 @@ that." (defun help-xref--navigation-buttons () (let ((inhibit-read-only t)) + (when (or help-xref-stack help-xref-forward-stack) + (ensure-empty-lines 1)) ;; Make a back-reference in this buffer if appropriate. (when help-xref-stack - (ensure-empty-lines 1) (help-insert-xref-button help-back-label 'help-back (current-buffer))) ;; Make a forward-reference in this buffer if appropriate. -- 2.39.5