зеркало из https://github.com/github/ruby.git
* 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:
Родитель
fbaec78eb3
Коммит
0e1cb279ea
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче