summaryrefslogtreecommitdiff
path: root/lib/rexml/text.rb
diff options
context:
space:
mode:
authorkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-07 02:50:38 +0000
committerkou <kou@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-07 02:50:38 +0000
commit0e1cb279ea428445dc8b4f0642cd5a5c78b8807f (patch)
treeaf383027bf45c623c7e6e2e9aded7e3073780ac8 /lib/rexml/text.rb
parentfbaec78eb331cce46e640241b074bd7091509d67 (diff)
* 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. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rexml/text.rb')
-rw-r--r--lib/rexml/text.rb1
1 files changed, 1 insertions, 0 deletions
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