repositories
/
cc1516.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c3da7a
)
printen beetje gefixt
author
Mart Lubbers
<mart@martlubbers.net>
Mon, 29 Feb 2016 13:03:44 +0000
(14:03 +0100)
committer
Mart Lubbers
<mart@martlubbers.net>
Mon, 29 Feb 2016 13:03:44 +0000
(14:03 +0100)
src/parse.icl
patch
|
blob
|
history
diff --git
a/src/parse.icl
b/src/parse.icl
index
c28fb4c
..
6c888ac
100644
(file)
--- a/
src/parse.icl
+++ b/
src/parse.icl
@@
-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"]