printen beetje gefixt
authorMart Lubbers <mart@martlubbers.net>
Mon, 29 Feb 2016 13:03:44 +0000 (14:03 +0100)
committerMart Lubbers <mart@martlubbers.net>
Mon, 29 Feb 2016 13:03:44 +0000 (14:03 +0100)
src/parse.icl

index c28fb4c..6c888ac 100644 (file)
@@ -222,7 +222,7 @@ printStatements [s:ss] i = (case s of
        ) ++ printStatements ss i
        where
                printCodeBlock :: [Stmt] Int -> [String]
-               printCodeBlock [] _ = ["{}"]
+               printCodeBlock [] _ = ["{}\n"]
                printCodeBlock [x] i = ["\n":printStatements [x] (i+1)]
                printCodeBlock x i =
                        ["{\n":printStatements x (i+1)] ++ indent i ["}\n"]