Ticket #19 (new enhancement)

Opened 3 years ago

Last modified 11 months ago

Add ability to turn of collaping empty elements

Reported by: ser Owned by: ser
Priority: normal Milestone: 3.1.9
Component: DOM Version: 3.1.2
Severity: normal Keywords:
Cc: Ruby version: 1.8.2
Operating system: All

Description

Currently, when printing, REXML collapses empty elements:

  puts REXML::Document.new( "<a></a>" )

produces:

  <a/>

We want to be able to turn this off, so that there are no collapsed elements:

  puts REXML::Document.new("<a/>", :collapse=>false)
  # => "<a></a>"

Change History

Changed 2 years ago by anonymous

  • milestone changed from 3.1.4 to 3.2.0

Changed 13 months ago by ser

  • milestone changed from 3.2.0 to 3.1.8

Pulling into 3.1.8

Changed 11 months ago by ser

  • milestone changed from 3.1.8 to 3.1.9
Note: See TracTickets for help on using tickets.