Skip to content

Commit

Permalink
Turn of *print-pretty* while formatting XML messages
Browse files Browse the repository at this point in the history
If *print-pretty* is non-nil, net.xml.generator uses pretty p
rinter to indent generated XML nicely, but the output may be
incomplete if other parameters such as *print-level* etc. are
accidentally set.
  • Loading branch information
Shiro Kawai committed Dec 5, 2011
1 parent a86f1a7 commit 60df191
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions solr.lisp
Expand Up @@ -69,8 +69,9 @@
(defmacro xml->string (&body body)
(let ((s (gensym)))
`(with-output-to-string (,s)
(with-xml-generation (,s)
,@body))))
(let ((*print-pretty* nil))
(with-xml-generation (,s)
,@body)))))

;;;
;;; Updating
Expand Down

0 comments on commit 60df191

Please sign in to comment.