philip....@gmail.com
未讀,2009年4月1日 下午5:26:312009/4/1登入以回覆作者
登入以轉寄訊息
你的權限不足,無法在這個群組刪除訊息
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:Clojure
Hi,
user=> (use 'clojure.contrib.lazy-xml)
nil
user=> (emit '{:tag :foo :attrs {:a "b" :c "d"} :content
({:tag :bar :attrs {:e "f"} :content ({:tag :baz :attrs nil :content
("hello")})})} :pad true)
<?xml version='1.0' encoding='UTF-8'?>
<foo a='b' c='d'>
<bar e='f'><baz>hello</baz></bar></foo>
nil
The 'foo' element is getting the requested padding, but it does not
propagate to the nested elements.
I believe line 150 of lazy-xml.clj should read,
(apply emit-element c opts)
to fix this.
Regards,
Phil