Skip to content

Commit

Permalink
Make clear that skipping long description is possible.
Browse files Browse the repository at this point in the history
  • Loading branch information
douglasdavis committed Mar 4, 2021
1 parent 165be6c commit e0dff37
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion numpydoc.el
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,9 @@ This function assumes the cursor to be in the function body."
(beginning-of-line)
(if numpydoc-prompt-for-input
(progn
(setq ld (read-string "Long description: " nil nil "" nil))
(setq ld (read-string (concat "Long description "
"(or press return to skip): ")
nil nil "" nil))
(unless (string-empty-p ld)
(insert "\n")
(numpydoc--insert indent ld)
Expand Down

0 comments on commit e0dff37

Please sign in to comment.