fixes broken tests in format and eep

This commit is contained in:
alisdair sullivan 2011-07-22 21:46:24 -07:00
parent 2ee96eb356
commit b4eaf15dbe
2 changed files with 10 additions and 13 deletions

View file

@ -173,8 +173,10 @@ encode(string, String) ->
[?quote, String, ?quote];
encode(literal, Literal) ->
erlang:atom_to_list(Literal);
encode(_, Number) ->
Number.
encode(integer, Integer) ->
erlang:integer_to_list(Integer);
encode(float, Float) ->
jsx_utils:nice_decimal(Float).
indent(Opts, Level) ->