summaryrefslogtreecommitdiff
path: root/lisp/help-fns.el
diff options
context:
space:
mode:
authorJohn Paul Wallington <jpw@pobox.com>2003-04-12 04:28:43 +0000
committerJohn Paul Wallington <jpw@pobox.com>2003-04-12 04:28:43 +0000
commit88ff724bdf1d947c9643ecd5c0fe915f3acf60fa (patch)
treea008fc9268ee157733564563397e6af6f60894bb /lisp/help-fns.el
parent6901b111fe763ea2519a383cbc29877b3c4f24b8 (diff)
downloademacs-88ff724bdf1d947c9643ecd5c0fe915f3acf60fa.tar.gz
emacs-88ff724bdf1d947c9643ecd5c0fe915f3acf60fa.tar.bz2
emacs-88ff724bdf1d947c9643ecd5c0fe915f3acf60fa.zip
(help-add-fundoc-usage): Pass an empty string to `format' if
no newlines are necessary.
Diffstat (limited to 'lisp/help-fns.el')
-rw-r--r--lisp/help-fns.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/help-fns.el b/lisp/help-fns.el
index 4f3626c4511..41b002c7e79 100644
--- a/lisp/help-fns.el
+++ b/lisp/help-fns.el
@@ -181,7 +181,7 @@ The usage info is built from ARGLIST. DOC can be nil."
doc
(format "%s%s%s" doc
(if (string-match "\n?\n\\'" doc)
- (if (< (- (match-end 0) (match-beginning 0)) 2) "\n")
+ (if (< (- (match-end 0) (match-beginning 0)) 2) "\n" "")
"\n\n")
(help-make-usage 'fn arglist))))