Loading src/black/__init__.py +1 −1 Changes for src/black/__init__.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -6063,7 +6063,7 @@ def _stringify_ast( and field == "value" and isinstance(value, str) ): normalized = re.sub(r" *\n[ \t]+", "\n ", value).strip() normalized = re.sub(r" *\n[ \t]*", "\n", value).strip() else: normalized = value yield f"{' ' * (depth+2)}{normalized!r}, # {value.__class__.__name__}" Loading tests/data/docstring.py +16 −0 Changes for tests/data/docstring.py: 16 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -58,6 +58,14 @@ def poit(): pass def under_indent(): """ These lines are indented in a way that does not make sense. """ pass def over_indent(): """ This has a shallow indent Loading Loading @@ -136,6 +144,14 @@ def poit(): pass def under_indent(): """ These lines are indented in a way that does not make sense. """ pass def over_indent(): """ This has a shallow indent Loading Loading
src/black/__init__.py +1 −1 Changes for src/black/__init__.py: 1 added line, 1 removed line. Original line number Diff line number Diff line Loading @@ -6063,7 +6063,7 @@ def _stringify_ast( and field == "value" and isinstance(value, str) ): normalized = re.sub(r" *\n[ \t]+", "\n ", value).strip() normalized = re.sub(r" *\n[ \t]*", "\n", value).strip() else: normalized = value yield f"{' ' * (depth+2)}{normalized!r}, # {value.__class__.__name__}" Loading
tests/data/docstring.py +16 −0 Changes for tests/data/docstring.py: 16 added lines, 0 removed lines. Original line number Diff line number Diff line Loading @@ -58,6 +58,14 @@ def poit(): pass def under_indent(): """ These lines are indented in a way that does not make sense. """ pass def over_indent(): """ This has a shallow indent Loading Loading @@ -136,6 +144,14 @@ def poit(): pass def under_indent(): """ These lines are indented in a way that does not make sense. """ pass def over_indent(): """ This has a shallow indent Loading