Fix if-then-else paragraph layouting

pull/136/head
Lennart Spitzner 2018-04-17 06:03:15 +02:00
parent ae162403ae
commit 213e82b476
1 changed files with 2 additions and 2 deletions

View File

@ -456,13 +456,13 @@ layoutExpr lexpr@(L _ expr) = do
(docLines (docLines
[ docAddBaseY BrIndentRegular [ docAddBaseY BrIndentRegular
$ docNodeAnnKW lexpr (Just AnnThen) $ docNodeAnnKW lexpr (Just AnnThen)
$ docAlt $ docNonBottomSpacing $ docAlt
[ docSeq [appSep $ docLit $ Text.pack "then", docForceParSpacing thenExprDoc] [ docSeq [appSep $ docLit $ Text.pack "then", docForceParSpacing thenExprDoc]
, docAddBaseY BrIndentRegular , docAddBaseY BrIndentRegular
$ docPar (docLit $ Text.pack "then") thenExprDoc $ docPar (docLit $ Text.pack "then") thenExprDoc
] ]
, docAddBaseY BrIndentRegular , docAddBaseY BrIndentRegular
$ docAlt $ docNonBottomSpacing $ docAlt
[ docSeq [appSep $ docLit $ Text.pack "else", docForceParSpacing elseExprDoc] [ docSeq [appSep $ docLit $ Text.pack "else", docForceParSpacing elseExprDoc]
, docAddBaseY BrIndentRegular , docAddBaseY BrIndentRegular
$ docPar (docLit $ Text.pack "else") elseExprDoc $ docPar (docLit $ Text.pack "else") elseExprDoc