瀏覽代碼

support_tables: &:strip saves 36.5 MB

Simon Legner 3 年之前
父節點
當前提交
088f13e1a6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/docs/scrapers/support_tables.rb

+ 1 - 1
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)]
         }