pyment icon indicating copy to clipboard operation
pyment copied to clipboard

Extra blank line for docstring with a muli-line description

Open dadadel opened this issue 8 years ago • 0 comments

If a function has no argument and a multi-line description, Pyment will insert two blank lines between the description and the end of the docstring. It should be one blank line.

The following example:

def func():
    """Description
    in two lines

    """
    pass

Will provide the patch:

# Patch generated by Pyment v0.3.2-dev4

--- a/tst.py
+++ b/tst.py
@@ -1,6 +1,7 @@
 def func():
     """Description
     in two lines
+
 
     """
     pass

dadadel avatar Oct 01 '17 19:10 dadadel