Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

Currently, clojure.xml/emit breaks the eBay api, because emit adds whitespace before and after :contents. This trivial patch fixes it for me:
http://github.com/tjg/clojure/commit/bbff079d26e627c655b847319a58d76b8b3cec7c

(Dunno whether there's a good reason emit works that way, or if I'm missing something obvious.)

I realize that emit's behavior conforms to the XML spec and it's probably eBay at fault here. But I can nevertheless see this whitespace causing problems.

4 Answers

0 votes
by

Comment made by: importer

bpsm said: I've attached a patch to #410, which also fixes this issue. (In fact, it turns out that it's the same patch tlj previously attached here.)

0 votes
by

Comment made by: importer

Converted from http://www.assembla.com/spaces/clojure/tickets/277

0 votes
by

Comment made by: importer

stu said: Duplicated association with ticket #410 was added

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-277 (reported by alex+import)
...