[Groonga-commit] groonga/groonga at 6c929e6 [master] Fix miss-leading method name

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Sep 20 13:52:35 JST 2013


Kouhei Sutou	2013-09-20 13:52:35 +0900 (Fri, 20 Sep 2013)

  New Revision: 6c929e63294098d6df2a3a390553bdfa25635d66
  https://github.com/groonga/groonga/commit/6c929e63294098d6df2a3a390553bdfa25635d66

  Message:
    Fix miss-leading method name
    
    The method doesn't "fix" because the source link label isn't
    broken. The method just adds additional information.

  Modified files:
    tools/prepare-sphinx-html.rb

  Modified: tools/prepare-sphinx-html.rb (+2 -2)
===================================================================
--- tools/prepare-sphinx-html.rb    2013-09-20 13:50:11 +0900 (7ad96d8)
+++ tools/prepare-sphinx-html.rb    2013-09-20 13:52:35 +0900 (ba1b2c8)
@@ -47,7 +47,7 @@ def fix_html_link(html, language)
   end
 end
 
-def fix_source_label(html)
+def add_language_annotation_to_source_label(html)
   html.gsub(/>(ソースコードを表示)</) do
     label = $1
     ">#{label}(英語)<"
@@ -155,7 +155,7 @@ language_dirs.each do |language_dir|
         content = fix_link(content, extension, language)
         if extension == "html"
           content = insert_facebook_html(content, language)
-          content = fix_source_label(content)
+          content = add_language_annotation_to_source_label(content)
         end
         dest_path.open("wb") do |dest|
           dest.print(content.strip)
-------------- next part --------------
HTML����������������������������...
Download 



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