@@ -92,6 +92,9 class RepositoriesController < ApplicationController | |||
|
92 | 92 | show_error and return unless @content |
|
93 | 93 | if 'raw' == params[:format] |
|
94 | 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 | 98 | end |
|
96 | 99 | end |
|
97 | 100 |
General Comments 0
You need to be logged in to leave comments.
Login now