[Groonga-commit] ranguba/chupa-text-decomposer-html at 7604ed7 [master] Duplicate attributes

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Sat Feb 18 00:54:16 JST 2017


Kouhei Sutou	2017-02-18 00:54:16 +0900 (Sat, 18 Feb 2017)

  New Revision: 7604ed76a89e91e26ed5cfd4d5c2651a2605aeae
  https://github.com/ranguba/chupa-text-decomposer-html/commit/7604ed76a89e91e26ed5cfd4d5c2651a2605aeae

  Message:
    Duplicate attributes

  Modified files:
    lib/chupa-text/decomposers/html.rb

  Modified: lib/chupa-text/decomposers/html.rb (+5 -3)
===================================================================
--- lib/chupa-text/decomposers/html.rb    2014-02-18 00:05:42 +0900 (1246b0b)
+++ lib/chupa-text/decomposers/html.rb    2017-02-18 00:54:16 +0900 (1ee37a5)
@@ -1,4 +1,4 @@
-# Copyright (C) 2013  Kouhei Sutou <kou �� clear-code.com>
+# Copyright (C) 2013-2017  Kouhei Sutou <kou �� clear-code.com>
 #
 # This library is free software; you can redistribute it and/or
 # modify it under the terms of the GNU Lesser General Public
@@ -41,8 +41,10 @@ module ChupaText
         else
           body = ""
         end
-        decomposed_data = TextData.new(body)
-        decomposed_data.uri = data.uri
+        decomposed_data = data.dup
+        decomposed_data.body = body
+        decomposed_data.size = body.bytesize
+        decomposed_data.mime_type = "text/plain"
 
         attributes = decomposed_data.attributes
         title_element = (doc % "head/title")
-------------- next part --------------
HTML����������������������������...
ダウンロード 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る