On 2002.05.16, Sean O'Dell <sean / BUHBYESPAMcelsoft.com> wrote:
> I've done pretty printing for XML, and my rule was always: use indents 
> and add newlines unless the element has no children, then strip off 
> surrounding whitespace and just indent.

I mentioned this to Sean (not you, Sean, the other Sean, the
one that maintains REXML) that the pretty-printer should not
touch tags with the xml:space="preserved" attribute set.

I wonder how many people actually use that attribute, and
preserve it.

-- Dossy

-- 
Dossy Shiobara                       mail: dossy / panoptic.com 
Panoptic Computer Network             web: http://www.panoptic.com/ 
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)