diff options
author | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-23 15:44:30 +0000 |
---|---|---|
committer | ser <ser@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2004-04-23 15:44:30 +0000 |
commit | d15f41b0eb0f284cb15ee814c691e556ae20d8b1 (patch) | |
tree | b2ee8d4e0c6f78c96cfa26c1d2a754e12fc82151 /lib/rexml/comment.rb | |
parent | 7792d9026a592ffc9714bec34d9b911b226036e7 (diff) | |
download | ruby-d15f41b0eb0f284cb15ee814c691e556ae20d8b1.tar.gz |
* Non-String attributes are now converted to Strings; this means code such as
elem.attributes["a"] = 1
will not cause an error when dumping the XML. It also means that:
elem.attributes["a"] # => "1", not 1
* Transitive indenting has been cleaned up.
* Fixed a potential bug in parsing non-ASCII encoded streams
* Fixed a bug where trying to fill in ParseException data was causing an
IO error (stream closed)
* Changes to Text mean that Element (and Text) can be used outside of a
Document context.
* In some rare cases, the base parser wasn't reading enough bytes from the
stream for the parsing algorithm to work properly. This has been fixed
(this was Ruby bug #48426)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@6209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/comment.rb')
-rw-r--r-- | lib/rexml/comment.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/rexml/comment.rb b/lib/rexml/comment.rb index 7c3e79fe2a..334017cbfc 100644 --- a/lib/rexml/comment.rb +++ b/lib/rexml/comment.rb @@ -54,6 +54,10 @@ module REXML indent( output, indent ) output << START output << @string + if indent>-1 + output << "\n" + indent( output, indent ) + end output << STOP end |