dadadel / pyment

Format and convert Python docstrings and generates patches
GNU General Public License v3.0
905 stars 62 forks source link

Extra blank line for docstring with a muli-line description #47

Open dadadel opened 7 years ago

dadadel commented 7 years ago

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