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
This is a really tricky thing to get right with this kind of formatter in my experience. My best effort so far is using union which you could try under block::BlockDoc which I think should work for this case (though some choices around whitespace might not exactly match what you want).
If that doesn't work you will need to hack something yourself using union or choose a different formatter I am afraid.
I want to define a layout that has two forms, depending on whether the other layout is single-line or multi-line
For example, for the statement while cond body
If
cond
is single line, thenbody
use layout 1If
cond
is multiline, then usebody
layout 2flat_alt
seems to only depend on whether itself is single-line or multi-line, is there a way to depend on other unitsThe text was updated successfully, but these errors were encountered: