changeset 50559:4975a5944969

(help-add-fundoc-usage): Pass an empty string to `format' if no newlines are necessary.
author John Paul Wallington <jpw@pobox.com>
date Sat, 12 Apr 2003 04:27:46 +0000
parents 7750a331ccb9
children 0b1e9bedf711
files lisp/help-fns.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/help-fns.el	Fri Apr 11 23:44:43 2003 +0000
+++ b/lisp/help-fns.el	Sat Apr 12 04:27:46 2003 +0000
@@ -181,7 +181,7 @@
       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))))