diff options
author | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-15 07:20:07 +0000 |
---|---|---|
committer | hsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-12-15 07:20:07 +0000 |
commit | 0fd3fe001d5f0862200f6fb69b289b42518c0a6b (patch) | |
tree | 3472cfcb33fdfec2dff808add0a1775f34334960 /lib/rdoc | |
parent | 4bd1d6b2a1b4df3d2e9d2725dba379cc16893b8d (diff) | |
download | ruby-0fd3fe001d5f0862200f6fb69b289b42518c0a6b.tar.gz |
* lib/erb.rb: Render erb with array buffer for function call optimization.
[fix GH-1143]
* lib/rdoc/erb_partial.rb: ditto.
* template/verconf.h.tmpl: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53123 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/erb_partial.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/erb_partial.rb b/lib/rdoc/erb_partial.rb index 910d1e0351..8359258d27 100644 --- a/lib/rdoc/erb_partial.rb +++ b/lib/rdoc/erb_partial.rb @@ -11,7 +11,7 @@ class RDoc::ERBPartial < ERB def set_eoutvar compiler, eoutvar = '_erbout' super - compiler.pre_cmd = ["#{eoutvar} ||= ''"] + compiler.pre_cmd = ["#{eoutvar} ||= []"] end end |