Black removes indentation in multi-line dict with multi-line value #1758
Labels
F: linebreak
How should we split up lines?
R: duplicate
This issue or pull request already exists
T: style
What do we want Blackened code to look like?
Describe the bug
A code snippet is worth a thousand words.
To Reproduce Steps to reproduce the behavior:
It removes the indentation from the second line of a two line long value string:
to:
Demo
Expected behavior
Enforce/keep the 2nd line of value to start its indentation from same column as 1st line of value.
The wrapped element, which should follow the guidance in PEP8 -- Style Guide for Python Code#indentation, is the value.
Environment (please complete the following information):
Additional context
Stack Overflow: PEP8 multi-line dict with multi-line value.
The text was updated successfully, but these errors were encountered: