Skip to content

Commit a5f26b0

Browse files
committed
Do not add an empty line at the end of the docstring
1 parent 0100027 commit a5f26b0

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

python-insert-docstring-tests.el

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@
148148
:arguments nil
149149
:return nil))
150150
'(" \"\"\"title"
151-
""
152151
" \"\"\""))))
153152

154153
(ert-deftest python-google-docstring-title-and-return ()
@@ -165,7 +164,6 @@
165164
""
166165
" Returns:"
167166
" something"
168-
""
169167
" \"\"\""))))
170168

171169
(ert-deftest python-google-docstring-title-args-and-return ()
@@ -187,7 +185,6 @@
187185
""
188186
" Returns:"
189187
" something"
190-
""
191188
" \"\"\""))))
192189

193190
(ert-deftest python-google-docstring-title-and-args ()
@@ -206,7 +203,6 @@
206203
" Args:"
207204
" one: this one"
208205
" two: this two"
209-
""
210206
" \"\"\""))))
211207

212208
(ert-deftest python-google-docstring-all-fields ()
@@ -236,7 +232,6 @@
236232
" Returns:"
237233
" what a very very very very very very very very very very very very"
238234
" long return"
239-
""
240235
" \"\"\""))))
241236

242237

python-insert-docstring.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ If a string is empty, PREFIX doesn't get prepended."
258258
arguments docstring-indentation)
259259
(python-insert-docstring--google-docstring-returns
260260
return docstring-indentation)
261-
(python-insert-docstring--prefix-lines '("" "\"\"\"")
261+
(python-insert-docstring--prefix-lines '("\"\"\"")
262262
docstring-indentation))))
263263

264264

0 commit comments

Comments
 (0)