Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/rdoc/erbio.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ class RDoc::ERBIO < ERB
##
# Defaults +eoutvar+ to 'io', otherwise is identical to ERB's initialize

def initialize str, safe_level = nil, trim_mode = nil, eoutvar = 'io'
def initialize str, safe_level = nil, legacy_trim_mode = nil, legacy_eoutvar = 'io', trim_mode: nil, eoutvar: 'io'
if RUBY_VERSION >= '2.6'
super(str, trim_mode: trim_mode, eoutvar: eoutvar)
else
super
super(str, safe_level, legacy_trim_mode, legacy_eoutvar)
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/rdoc/generator/darkfish.rb
Original file line number Diff line number Diff line change
Expand Up @@ -779,9 +779,9 @@ def template_for file, page = true, klass = ERB
end

if RUBY_VERSION >= '2.6'
template = klass.new template, trim_mode: '<>', eoutvar: erbout
template = klass.new template, trim_mode: '-', eoutvar: erbout
else
template = klass.new template, nil, '<>', erbout
template = klass.new template, nil, '-', erbout
end
@template_cache[file] = template
template
Expand Down