From: James Britt Date: 2004-12-02T11:18:11+09:00 Subject: Re: Does REXML add spaces to comments? phlip2005@gmail.com wrote: > Rubistas: > > I'm using REXML to read and write XML too often. > > 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. Doesn't seem that way for me: #-------- require 'rexml/document' doc = REXML::Document.new( "Text" ) doc.root << REXML::Comment.new( 'My Comment') puts doc # Text #-------- This is using ruby 1.8.2 (2004-11-06) [i386-mswin32] on Win2K > > Ruby 1.8.2 (from the Pragmatic Programmers' way cool installer). I believe this is Curt Hibbs' work, now referred to as the "One-click Installer." James