From: Phlip Date: 2004-12-02T11:57:44+09:00 Subject: Re: Does REXML add spaces to comments? James Britt wrote: > > Whenever REXML saves a comment, it adds linefeeds to it. Because I > > write too often, these are stacking up. Is this my fault? I tried > > various doc.write(f, x) options for the indentation levels. > #-------- > require 'rexml/document' > doc = REXML::Document.new( "Text" ) > doc.root << REXML::Comment.new( 'My Comment') > puts doc # Text > #-------- I cannot reproduce the problem using a 4 line program like that, with a copy of the production XML that causes the problem. Thanks for trying. I have to look closer at the production then... -- Phlip http://industrialxp.org/community/bin/view/Main/TestFirstUserInterfaces