Re: JSON / XML support in E
Kevin Reid <[email protected]>
| Newsgroups | gmane.comp.lang.e.general |
|---|---|
| Message-ID | <[email protected]> |
On Feb 22, 2010, at 10:42, Thomas Leonard wrote:
> The pretty printing inserts a space into the string after the \n:
>
> ? println(text)
> [["hello
> world"]]
This is definitely a bug, in that Terms should have read/print
consistency. Condensed test cases:
? println(term`foo(["hello\nworld"])`.asText())
foo(["hello
world"])
? println(term`foo("hello\nworld")`.asText())
foo("hello
world")
? println(term`foo(bar("hello\nworld"))`.asText())
foo(bar("hello
world"))
The first and third are wrong, the second is acceptable.
--
Kevin Reid <http://switchb.org/kpreid/>