More docstring filling woes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
High
|
Andreas Roehler |
Bug Description
(I selected "PEP-257-NN" as the docstring fill style.)
Given the following code:
class Test(object):
"""
Builds target formats from the reST sources.
"""
def method1(self):
"""Return the template bridge configured."""
pass
def method2(self):
"""Load necessary templates and perform initialization. The default implementation does nothing.
"""
pass
After filling the three docstrings with fill-paragraph, it looks like this:
class Test(object):
""" Builds target formats from the reST sources. """
def method1(self):
"""Return the template bridge configured.""" pass
def method2(self):
"""Load necessary templates and perform initialization. The default
There are three misbehaviors here:
* should have removed the whitespace at the beginning and end of the class docstring
* in method1, the "pass" should remain on its own line
* in method2, the closing triple-quote should get its own line, and the "pass" too
Changed in python-mode: | |
milestone: | none → 6.1.1 |
assignee: | nobody → Andreas Roehler (a-roehler) |
importance: | Undecided → Medium |
status: | New → In Progress |
Changed in python-mode: | |
importance: | Medium → High |
Changed in python-mode: | |
status: | In Progress → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
please try again