We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 74e7488 commit ad52b8cCopy full SHA for ad52b8c
docstr-util.el
@@ -139,8 +139,8 @@ and GREEDY."
139
(cl-defun docstr-util-default-format
140
(&key (fmt-type "{ %s }") (fmt-var "%s :") (param "@param") (ret "@return"))
141
"Set default format for document string."
142
- (when param (setq param (concat param " ")))
143
- (when ret (setq ret (concat ret " ")))
+ (unless (string-empty-p param) (setq param (concat param " ")))
+ (unless (string-empty-p ret) (setq ret (concat ret " ")))
144
(setq-local
145
docstr-format-type fmt-type
146
docstr-format-var fmt-var
0 commit comments