From 088f13e1a637465fdde3c55ceaceaba81948bd5b Mon Sep 17 00:00:00 2001 From: Simon Legner Date: Sun, 13 Nov 2022 00:29:44 +0100 Subject: [PATCH] support_tables: &:strip saves 36.5 MB --- lib/docs/scrapers/support_tables.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/docs/scrapers/support_tables.rb b/lib/docs/scrapers/support_tables.rb index 1d8a37bd..cab1aa4d 100644 --- a/lib/docs/scrapers/support_tables.rb +++ b/lib/docs/scrapers/support_tables.rb @@ -49,7 +49,7 @@ module Docs page = { path: feature_id, store_path: "#{feature_id}.html", - output: ERB.new(PAGE_ERB, trim_mode:">").result(binding), + output: ERB.new(PAGE_ERB, trim_mode:">").result(binding).split("\n").map(&:strip).join("\n"), entries: [Entry.new(name, feature_id, type)] }