ruby-changes:5339
From: mame <ko1@a...>
Date: Thu, 5 Jun 2008 20:22:48 +0900 (JST)
Subject: [ruby-changes:5339] Ruby:r16840 (trunk): * lib/rexml/document.rb (REXML::Document:write): leaky modification
mame 2008-06-05 20:22:32 +0900 (Thu, 05 Jun 2008) New Revision: 16840 Modified files: trunk/ChangeLog trunk/lib/rexml/document.rb trunk/lib/rexml/text.rb Log: * lib/rexml/document.rb (REXML::Document:write): leaky modification trans -> transitive. [ruby-dev:32040], r13686 * lib/rexml/text.rb (Text.check): fix check for illigal characher. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rexml/text.rb?r1=16840&r2=16839&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=16840&r2=16839&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/lib/rexml/document.rb?r1=16840&r2=16839&diff_format=u Index: ChangeLog =================================================================== --- ChangeLog (revision 16839) +++ ChangeLog (revision 16840) @@ -1,3 +1,10 @@ +Thu Jun 5 20:17:29 2008 Yusuke Endoh <mame@t...> + + * lib/rexml/document.rb (REXML::Document:write): leaky modification + trans -> transitive. [ruby-dev:32040], r13686 + + * lib/rexml/text.rb (Text.check): fix check for illigal characher. + Thu Jun 5 14:03:44 2008 Nobuyoshi Nakada <nobu@r...> * ext/iconv/iconv.c (iconv_create): find encoding without options. Index: lib/rexml/document.rb =================================================================== --- lib/rexml/document.rb (revision 16839) +++ lib/rexml/document.rb (revision 16840) @@ -168,7 +168,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 @@ -184,7 +184,7 @@ output = Output.new( output, xml_decl.encoding ) end formatter = if indent > -1 - if trans + if transitive REXML::Formatters::Transitive.new( indent, ie_hack ) else REXML::Formatters::Pretty.new( indent, ie_hack ) Index: lib/rexml/text.rb =================================================================== --- lib/rexml/text.rb (revision 16839) +++ lib/rexml/text.rb (revision 16840) @@ -150,7 +150,7 @@ end # context sensitive - string.scan(pattern).each do + string.scan(pattern) do if $1[-1] != ?; raise "Illegal character '#{$1}' in raw string \"#{string}\"" elsif $1[0] == ?& -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/