Dont flatten operators without surrounding parens
parent
09ec59eaf9
commit
5563cd4d93
|
@ -297,7 +297,7 @@ layoutOpTree allowSinglelinePar = \case
|
||||||
$ docForceZeroAdd
|
$ docForceZeroAdd
|
||||||
$ wrapParenMl
|
$ wrapParenMl
|
||||||
(docSetBaseY docL)
|
(docSetBaseY docL)
|
||||||
(sharedOpsFlat <&> \(od, ed) ->
|
(sharedOps <&> \(od, ed) ->
|
||||||
docCols ColOpPrefix [appSep od, docSetBaseY ed]
|
docCols ColOpPrefix [appSep od, docSetBaseY ed]
|
||||||
)
|
)
|
||||||
-- > one
|
-- > one
|
||||||
|
@ -308,6 +308,6 @@ layoutOpTree allowSinglelinePar = \case
|
||||||
hasParen
|
hasParen
|
||||||
-- ((if not hasParen then docAddBaseY BrIndentRegular else id) docL)
|
-- ((if not hasParen then docAddBaseY BrIndentRegular else id) docL)
|
||||||
(if hasParen then docSetBaseY docL else docL)
|
(if hasParen then docSetBaseY docL else docL)
|
||||||
(sharedOpsFlat <&> \(od, ed) ->
|
((if hasParen then sharedOps else sharedOpsFlat) <&> \(od, ed) ->
|
||||||
docCols ColOpPrefix [appSep od, docSetBaseY ed]
|
docCols ColOpPrefix [appSep od, docSetBaseY ed]
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue