You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am formatting a 2-space indentation codebase and I'm using black. I've noticed that it does not succeed completely in formatting the docstrings into a 4-space indentation.
To Reproduce
Consider this file:
deffoo():
"""Foo. Foo bar la la la... """pass
By just running "black" on it, this produces the following:
deffoo():
"""Foo. Foo bar la la la... """pass
Expected behavior
The expected behavior would be to also fix the """ part at the end of the docstring.
Environment
Version: 19.10b0
OS and Python version: Windows 10, Python 3.7.4.
Does this bug also happen on master?
No. Using the online formatter, I get the expected behavior.
The text was updated successfully, but these errors were encountered:
This has been fixed in master because of PR #1053.
Master (black, version 19.10b1.dev112+g3461338)
(black) richard-26@ubuntu-laptop:~/programming/black$ black test.py --diff --color
--- test.py 2020-06-10 19:32:34.305886 +0000+++ test.py 2020-06-10 19:33:17.115094 +0000@@ -1,6 +1,6 @@
def foo():
- """Foo.+ """Foo.- Foo bar la la la...- """- pass+ Foo bar la la la...+ """+ pass
would reformat test.py
All done! ✨ 🍰 ✨
1 file would be reformatted.
I am formatting a 2-space indentation codebase and I'm using black. I've noticed that it does not succeed completely in formatting the docstrings into a 4-space indentation.
To Reproduce
Consider this file:
By just running "black" on it, this produces the following:
Expected behavior
The expected behavior would be to also fix the
"""
part at the end of the docstring.Environment
Does this bug also happen on master?
No. Using the online formatter, I get the expected behavior.
The text was updated successfully, but these errors were encountered: