mirror of
https://github.com/ilyakooo0/ormolu.git
synced 2024-09-19 04:37:08 +03:00
Output space using ‘space’ in ‘sepSemi’
This commit is contained in:
parent
2ed76cc147
commit
c84eaa9f7a
@ -174,10 +174,12 @@ sepSemi f xs = vlayout singleLine multiLine
|
||||
xs' ->
|
||||
if ub
|
||||
then do
|
||||
txt "{ "
|
||||
sep (txt "; ") (dontUseBraces . f) xs'
|
||||
txt " }"
|
||||
else sep (txt "; ") f xs'
|
||||
txt "{"
|
||||
space
|
||||
sep (txt ";" >> space) (dontUseBraces . f) xs'
|
||||
space
|
||||
txt "}"
|
||||
else sep (txt ";" >> space) f xs'
|
||||
multiLine =
|
||||
sep newline (dontUseBraces . f) xs
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user