assert and with should be followed with a newline

This commit is contained in:
Domen Kožar 2018-01-28 13:08:43 +00:00
parent 22097ebe1c
commit b391db0bf6
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246
1 changed files with 2 additions and 2 deletions

View File

@ -170,8 +170,8 @@ prettyNix = withoutParens . cata phi where
<$> align (text "else" <+> withoutParens falseBody)
)
phi (NWith scope body) = leastPrecedence $
text "with" <+> withoutParens scope <> semi <+> withoutParens body
text "with" <+> withoutParens scope <> semi <$> align (withoutParens body)
phi (NAssert cond body) = leastPrecedence $
text "assert" <+> withoutParens cond <> semi <+> withoutParens body
text "assert" <+> withoutParens cond <> semi <$> align (withoutParens body)
recPrefix = text "rec" <> space