Ticket #19 (new enhancement)
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
Note: See
TracTickets for help on using
tickets.
