diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | lib/rexml/text.rb | 1 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,11 @@ +Sun Jul 7 11:49:19 2013 Kouhei Sutou <kou@cozmixng.org> + + * lib/rexml/text.rb (REXML::Text#<<): Support appending in not + "raw" mode. [Bug #8602] [ruby-dev:47482] + Reported by Ippei Obayashi. Thanks!!! + * test/rexml/test_text.rb (TextTester#test_shift_operator_cache): + Add a test for the above case. + Sun Jul 7 11:43:13 2013 Kouhei Sutou <kou@cozmixng.org> * lib/rexml/text.rb (REXML::Text#<<): Support method chain use by "<<" diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb index 0e45265a17..d3242ee46d 100644 --- a/lib/rexml/text.rb +++ b/lib/rexml/text.rb @@ -191,6 +191,7 @@ module REXML # 'text << "XXX" << "YYY"'. def <<( to_append ) @string << to_append.gsub( /\r\n?/, "\n" ) + clear_cache self end |