fill-paragraph corrupts the paragraph

Bug #1162912 reported by Barry Warsaw
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
High
Andreas Roehler

Bug Description

fill-paragraph seems broken again.

http://mail.python.org/pipermail/python-mode/2013-March/001551.html

I am having the exact same problem described above in r1217 of lp:python-mode

Specifically.

-----snip snip-----
def foo():
    """This is a function.

    The function does some stuff that is very interesting. It's hard to
    describe, but you will certainly love it when you try it. It's one of the
    best functions ever written, not just by me, but by all of mankind.
    Well, that may be overstating it, but it is a wondeful function.
    """
-----snip snip-----

Put point on the whitespace at the beginning of the line that starts with 'The' inside the docstring and hit M-q. You end up with the following:

-----snip snip-----
def foo():
    """This is a function.
The function does some stuff that is very interesting. It's hard to
    describe, but you will certainly love it when you try it. It's one
    of the best functions ever written, not just by me, but by all of
    mankind. Well, that may be overstating it, but it is a wondeful
    function. """
-----snip snip-----

Revision history for this message
Alexis Roda (aroda) wrote :

Customizing py-paragraph-fill-docstring-p solved the issue for me.

Changed in python-mode:
milestone: none → 6.1.2
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → High
Changed in python-mode:
status: New → Confirmed
Revision history for this message
Andreas Roehler (a-roehler) wrote :

Please re-open if not done

Changed in python-mode:
status: Confirmed → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.