@@ -92,6 +92,9 class RepositoriesController < ApplicationController | |||||
92 | show_error and return unless @content |
|
92 | show_error and return unless @content | |
93 | if 'raw' == params[:format] |
|
93 | if 'raw' == params[:format] | |
94 | send_data @content, :filename => @path.split('/').last |
|
94 | send_data @content, :filename => @path.split('/').last | |
|
95 | else | |||
|
96 | # Prevent empty lines when displaying a file with Windows style eol | |||
|
97 | @content.gsub!("\r\n", "\n") | |||
95 | end |
|
98 | end | |
96 | end |
|
99 | end | |
97 |
|
100 |
General Comments 0
You need to be logged in to leave comments.
Login now