押田といいます。
日々 ruby を活用させて頂いております。
rexml の document に revert 不足が見つかりまして、
そのパッチをお送りします。
r11752 で transitive → trans と変更されたものを
r13607 で戻しそびれている、というものです。
Fedora7 の 1.8.6.110-1 で拙作のプログラムが NameError するようになり、
ちょっと驚きました(^^;
修正よろしくお願いします。
1.9.1 楽しみにしております。
Index: document.rb
===================================================================
--- document.rb (revision 13681)
+++ document.rb (working copy)
@@ -167,7 +167,7 @@
# indentation will be twice this number of spaces, and children will be
# indented an additional amount. For a value of 3, every item will be
# indented 3 more levels, or 6 more spaces (2 * 3). Defaults to -1
- # trans::
+ # transitive::
# If transitive is true and indent is >= 0, then the output will be
# pretty-printed in such a way that the added whitespace does not affect
# the absolute *value* of the document -- that is, it leaves the value
@@ -178,7 +178,7 @@
# unable to parse proper XML, we have to provide a hack to generate XML
# that IE's limited abilities can handle. This hack inserts a space
# before the /> on empty tags. Defaults to false
- def write( output=$stdout, indent=-1, trans=false, ie_hack=false )
+ def write( output=$stdout, indent=-1, transitive=false,
ie_hack=false )
if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output)
output = Output.new( output, xml_decl.encoding )
end