[Python-mode] bug#21778: 24.5; python mode: fill-paragraph with raw docstring ignores python-fill-docstring-style
Barry Warsaw
barry at python.org
Thu Oct 29 15:37:14 EDT 2015
On Oct 29, 2015, at 08:00 AM, Andreas Röhler wrote:
>assume this affects python-mode.el also (?)
Well, I see weird things when I try to reproduce this with the head of git
master.
Starting with the original example:
-----snip snip-----
def f():
r"""
This is the docstring for my function.
It's a raw docstring because I want to type \t here, and maybe \n,
for example in LaTeX code like \tau or \nu.
More docstring here.
"""
pass
-----snip snip-----
Notice that the `pass` line is indented 5 spaces, and pyflakes gives me a
warning about that line. This is after hitting TAB on every line in the file,
so indeed python-mode is indenting that line one too many spaces to the right.
Now, if I point any place within the docstring hit M-q I get:
-----snip snip-----
def f():
r"""This is the docstring for my function.
It's a raw docstring because I want to type \t here, and maybe \n,
for example in LaTeX code like \tau or \nu.
More docstring here.
"""
pass
-----snip snip-----
Which isn't bad.
Cheers,
-Barry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://mail.python.org/pipermail/python-mode/attachments/20151029/d1f73295/attachment.sig>
More information about the Python-mode
mailing list