OSDN Git Service

remove detect_enoding. detect_encoding means force_encoding to the file.data's encodi...
authorSaito <saitowu@gmail.com>
Wed, 30 May 2012 03:56:00 +0000 (11:56 +0800)
committerSaito <saitowu@gmail.com>
Wed, 30 May 2012 03:56:00 +0000 (11:56 +0800)
app/views/refs/_tree.html.haml
app/views/refs/_tree_file.html.haml

index 0d9d2d7..ee2f278 100644 (file)
@@ -42,9 +42,9 @@
         .readme
           - if content.name =~ /\.(md|markdown)$/i
             = preserve do
-              = markdown(content.data.detect_encoding!)
+              = markdown(content.data)
           - else
-            = simple_format(content.data.detect_encoding!)
+            = simple_format(content.data)
 
 - if params[:path]
   - history_path = tree_file_project_ref_path(@project, @ref, params[:path])
index cb8a119..201028d 100644 (file)
@@ -13,7 +13,7 @@
       #tree-readme-holder
         .readme
           = preserve do
-            = markdown(file.data.detect_encoding!)
+            = markdown(file.data)
     - else
       .view_file_content
         - unless file.empty?