Skip to content

Commit ad52b8c

Browse files
committed
NS util.
1 parent 74e7488 commit ad52b8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docstr-util.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,8 @@ and GREEDY."
139139
(cl-defun docstr-util-default-format
140140
(&key (fmt-type "{ %s }") (fmt-var "%s :") (param "@param") (ret "@return"))
141141
"Set default format for document string."
142-
(when param (setq param (concat param " ")))
143-
(when ret (setq ret (concat ret " ")))
142+
(unless (string-empty-p param) (setq param (concat param " ")))
143+
(unless (string-empty-p ret) (setq ret (concat ret " ")))
144144
(setq-local
145145
docstr-format-type fmt-type
146146
docstr-format-var fmt-var

0 commit comments

Comments
 (0)