dedent
is not working properly with tab indent
#4869
Labels
Milestone
dedent
is not working properly with tab indent
#4869
utils.formatting.dedent
is not working properly withtab
indent.whitespace_counts
contains number of spaces from the beginning of each line (see formatting.py#L35), ifstring
doesn't contain spaces then it is equal to[0,0,0,...,0]
which is always true (see formatting.py#L45), hence it will never go totab
stripping.Steps to reproduce
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: