We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 933573e commit 85f89f7Copy full SHA for 85f89f7
1 file changed
src/Language/ECMAScript3/PrettyPrint.hs
@@ -167,7 +167,9 @@ instance Pretty (CaseClause a) where
167
CaseDefault _ ss ->
168
text "default" <> suffix ss
169
where
170
- suffix ss = colon <> nest 2 (softbreak <> prettyPrint ss)
+ suffix :: [Statement a] -> Doc
171
+ suffix [] = colon
172
+ suffix ss = colon <> nest 2 (linebreak <> prettyPrint ss)
173
174
instance Pretty InfixOp where
175
prettyPrint op = text $ case op of
0 commit comments