summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/help-fns.el2
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 5aede0a254a..3113adfc023 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
+2003-04-12 John Paul Wallington <jpw@gnu.org>
+
+ * help-fns.el (help-add-fundoc-usage): Pass an empty string to
+ `format' if no newlines are necessary.
+
2003-04-11 John Paul Wallington <jpw@gnu.org>
* type-break.el (type-break-warning-countdown-string): Doc fix.
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))))