Hi Remi,
Thanks for spotting this. I’ve applied your fix in SVN trunk. Best regards, Jerome Louvel -- Restlet ~ Founder and Lead developer ~ <http://www.restlet.org/> http://www.restlet.org Noelios Technologies ~ Co-founder ~ <http://www.noelios.com/> http://www.noelios.com De : [email protected] [mailto:[email protected]] De la part de Rémi Dewitte Envoyé : jeudi 12 novembre 2009 12:11 À : [email protected] Objet : Re: DomRepresentation setIndent bug Thierry, Unfortunately this is buggy : java.lang.IllegalArgumentException: Serialization parameter {indent} must have the value yes or no Boolean.toString(isIndent()) should be replaced by: isIndent() ? "yes" : "no" Cheers, Rémi On Thu, Nov 12, 2009 at 09:34, Thierry Boileau <[email protected]> wrote: Hi, thanks for your report, the fix is available in the svn repository. Best regards, Thierry Boileau > Hi, > > There seems to be a bug in DocRepresentation#createTransformer. Why this: > > transformer.setOutputProperty( > javax.xml.transform.OutputKeys.INDENT, Boolean > .toString(isIndent())); > > is inside the "if (docType != null)". > > The setIndent is not working because of this. > > Thanks > ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447 <http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2416920> &dsMessageId=2416920 ------------------------------------------------------ http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2423459

