Skip to content

Commit

Permalink
improve alignment of closing braces of prettyContainer
Browse files Browse the repository at this point in the history
  • Loading branch information
ners authored and Anton-Latukha committed Oct 13, 2023
1 parent 812eac4 commit 3badf5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Nix/Pretty.hs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ exprFNixDoc = \case
prettyContainer h f t c =
handlePresence
(simpleExpr (h <> t))
(const $ simpleExpr $ group $ nest 2 $ vsep $ one h <> (f <$> c) <> one t)
(const $ simpleExpr $ group $ nest 2 (h <> line <> vsep (f <$> c)) <> line <> t)
c

prettyAddScope h c b =
Expand Down

0 comments on commit 3badf5f

Please sign in to comment.