]> git.madduck.net Git - etc/vim.git/commit

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Removed adding a space into empty docstrings. (#2249)
authorMark Bell <MarkCBell@users.noreply.github.com>
Tue, 25 May 2021 22:43:28 +0000 (23:43 +0100)
committerGitHub <noreply@github.com>
Tue, 25 May 2021 22:43:28 +0000 (15:43 -0700)
commit92f20d7f8493f9d0f27531f68b776fb435d53d2e
tree2521bc60f546a3e7f95454d5f277379e708cdaf6
parent04518c38c945ecf3c15765b71642112495cade8d
Removed adding a space into empty docstrings. (#2249)

Resolves #2168 by disabling the insertion of a " " when the docstring is entirely empty.

Note that this PR is focussed only on the case of empty docstrings. In particular this does not make any changes to the behaviour that a " " is inserted if a non-empty docstring begins with the quoting character. That is, black still prefers:

    """ "something" """

to:

    """"something" """

and that:

    """"Something""""

is not a legal docstring.
CHANGES.md
src/black/linegen.py
tests/data/docstring.py