Skip to content
Snippets Groups Projects
Commit 202807c2 authored by Saito's avatar Saito
Browse files

remove detect_enoding. detect_encoding means force_encoding to the file.data's...

remove detect_enoding. detect_encoding means force_encoding to the file.data's encoding, not encoding to utf8. will cause encoding problem.
parent c71a76e7
No related branches found
No related tags found
1 merge request!868Bugfix/encoding
Loading
Loading
@@ -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])
Loading
Loading
Loading
Loading
@@ -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?
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment