yapf icon indicating copy to clipboard operation
yapf copied to clipboard

CONTINUATION_ALIGN_STYLE does not respect USE_TABS

Open clayote opened this issue 2 years ago • 2 comments

I'm switching my project from space indentation to tabs using yapf USE_TABS = True.

Some of the existing code deals with overlong lines using backslashes

bar = {'baz': {'qux': {'quux': ''}}}
bar['baz']['qux']['quux'] \
   = 'foo'

I want the second line to be indented with one tab, rather than the three spaces it currently is, so I set CONTINUATION_ALIGN_STYLE = VALIGN-RIGHT

Yet, yapf leaves this block of code as-is.

clayote avatar Jun 30 '22 17:06 clayote

I actually tried just switching that block to tabs manually, and yapf doesn't seem to respect that either? It turns it back into spaces.

clayote avatar Jun 30 '22 20:06 clayote

bother me too, what's the solution

darkey2s avatar May 05 '23 07:05 darkey2s