Browse Source

support_tables: trim_mode:">" saves 5.6 MB

Simon Legner 3 năm trước cách đây
mục cha
commit
c1a9d178e5
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      lib/docs/scrapers/support_tables.rb

+ 2 - 2
lib/docs/scrapers/support_tables.rb

@@ -29,7 +29,7 @@ module Docs
       index_page = {
         path: 'index',
         store_path: 'index.html',
-        output: ERB.new(INDEX_PAGE_ERB).result(binding),
+        output: ERB.new(INDEX_PAGE_ERB, trim_mode:">").result(binding),
         entries: [Entry.new(nil, 'index', nil)]
       }
 
@@ -49,7 +49,7 @@ module Docs
         page = {
           path: feature_id,
           store_path: "#{feature_id}.html",
-          output: ERB.new(PAGE_ERB).result(binding),
+          output: ERB.new(PAGE_ERB, trim_mode:">").result(binding),
           entries: [Entry.new(name, feature_id, type)]
         }