An Emacs mode for editing Python code

fill-paragraph in docstring

Reported by Andreas Roehler on 2013-03-28
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Medium
Andreas Roehler

Bug Description

Am 27.03.2013 22:12, schrieb Alexis Roda:> Hi,
> I have upgraded from python-mode 6.0.11 to 6.1.2 and now I have some trouble with fill-paragraph within docstrings. It works ok for comments.
>
> If the point is within the second paragraph M-q converts:
>
> """Returns a rewritten path.
>
> Assuming that ``cr`` is a :class:`ContextRewriter` instance,
> that the rewriter maps the path ``views/<filename>`` to
>
> into:
>
> """Returns a rewritten path.
> Assuming that ``cr`` is a :class:`ContextRewriter` instance,
> that the rewriter maps the path ``views/<filename>`` to
>
> And scrolls the buffer/window so that "Assuming that ..." appears in the top of the window.
>
> It seems to work ok if I select the whole paragraph before pressing M-q.
>
>
> I have tested it under a clean environment in a virtual machine, emacs 23.3.1, ubuntu 12.04, with a minimal setup.
>
> .emacs is just:
>
> (setq py-install-directory (expand-file-name "~/.emacs.d"))
> (add-to-list 'load-path py-install-directory)
> (require 'python-mode)
>
> Is this a known issue or am I missing something?
>
>
>
> Thanks in advance

Changed in python-mode:
milestone: none → 6.1.2
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → Medium
Changed in python-mode:
status: New → In Progress
Changed in python-mode:
status: In Progress → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers