Browse Source

Silent nokorigi/libxml2 warnings

Thibaut 11 năm trước cách đây
mục cha
commit
6769c90c8a
2 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 1 1
      lib/docs/core/filter.rb
  2. 1 1
      lib/docs/core/parser.rb

+ 1 - 1
lib/docs/core/filter.rb

@@ -68,7 +68,7 @@ module Docs
 
     def parse_html(html)
       warn "#{self.class.name} is re-parsing the document" unless ENV['RACK_ENV'] == 'test'
-      super
+      quietly { super }
     end
   end
 end

+ 1 - 1
lib/docs/core/parser.rb

@@ -5,7 +5,7 @@ module Docs
     end
 
     def html
-      @html ||= document? ? parse_as_document : parse_as_fragment
+      @html ||= quietly { document? ? parse_as_document : parse_as_fragment }
     end
 
     private