Skip to content

Commit

Permalink
properly output [foo,,,bar]
Browse files Browse the repository at this point in the history
  • Loading branch information
mishoo committed Jan 21, 2011
1 parent f9237b1 commit 617d177
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/codegen.lisp
Expand Up @@ -229,7 +229,9 @@ characters in string S to STREAM."
(:array (a) (:array (a)
(if (not a) "[]" (if (not a) "[]"
(add-spaces "[" (join (mapcar (lambda (expr) (add-spaces "[" (join (mapcar (lambda (expr)
(parenthesize expr :seq)) a) ", " ",") "]"))) (if expr
(parenthesize expr :seq)
"")) a) ", " ",") "]")))


(:object (props) (:object (props)
(if (not props) "{}" (if (not props) "{}"
Expand Down

0 comments on commit 617d177

Please sign in to comment.