mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
fbaec78eb3
commit
0e1cb279ea
2 changed files with 9 additions and 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 "<<"
|
||||
|
|
|
@ -191,6 +191,7 @@ module REXML
|
|||
# 'text << "XXX" << "YYY"'.
|
||||
def <<( to_append )
|
||||
@string << to_append.gsub( /\r\n?/, "\n" )
|
||||
clear_cache
|
||||
self
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue