]> 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:

Correctly handle inline tabs in docstrings (#1810)
authorJustin Prieto <density@users.noreply.github.com>
Mon, 9 Nov 2020 19:58:23 +0000 (14:58 -0500)
committerGitHub <noreply@github.com>
Mon, 9 Nov 2020 19:58:23 +0000 (11:58 -0800)
commit1d8b4d766d912c7b9e91fa885419730c334345ef
tree0feb3d489c542b6ad69075ca6dd5373b75879307
parentedf1c9dc0f20239b9d5351d8b0607c9e936dd43f
Correctly handle inline tabs in docstrings (#1810)

The `fix_docstring` function expanded all tabs, which caused a
difference in the AST representation when those tabs were inline and not
leading. This changes the function to only expand leading tabs so inline
tabs are preserved.

Fixes #1601.
src/black/__init__.py
tests/data/docstring.py