Update ERB call to avoid deprecation warnings

This commit is contained in:
Josh Holtrop 2024-02-28 16:14:21 -05:00
parent 6044b64695
commit 4baf26e492

View File

@ -99,7 +99,7 @@ class Generator
end end
template = File.read("rb/assets/user_guide.html.erb") template = File.read("rb/assets/user_guide.html.erb")
erb = ERB.new(template, nil, "<>") erb = ERB.new(template, trim_mode: "<>")
if multi_page if multi_page
@pages.each_with_index do |page, page_index| @pages.each_with_index do |page, page_index|