[Groonga-commit] ranguba/epub-searcher at e25e5a8 [master] Use EPUB::Parser's utility to get DOM tree from contents

Back to archive index

KITAITI Makoto null+****@clear*****
Mon Mar 14 01:53:53 JST 2016


KITAITI Makoto	2016-03-14 01:53:53 +0900 (Mon, 14 Mar 2016)

  New Revision: e25e5a8060370a08b6d4866ba9faf02c219a49d3
  https://github.com/ranguba/epub-searcher/commit/e25e5a8060370a08b6d4866ba9faf02c219a49d3

  Message:
    Use EPUB::Parser's utility to get DOM tree from contents

  Modified files:
    lib/epub-searcher/epub-document.rb

  Modified: lib/epub-searcher/epub-document.rb (+1 -1)
===================================================================
--- lib/epub-searcher/epub-document.rb    2016-03-14 01:49:20 +0900 (8756229)
+++ lib/epub-searcher/epub-document.rb    2016-03-14 01:53:53 +0900 (d475c4c)
@@ -35,7 +35,7 @@ module EPUBSearcher
     def extract_main_text
       main_text = ''
       @epub_book.each_page_on_spine do |item|
-        content = Nokogiri::HTML(item.read)
+        content = item.content_document.nokogiri
         main_text << content.at('body').text
       end
       return main_text
-------------- next part --------------
HTML����������������������������...
下载 



More information about the Groonga-commit mailing list
Back to archive index