编辑的时候去掉行头字符

This commit is contained in:
huang 2017-03-21 09:03:19 +08:00
parent 37679021ea
commit 7044ce8f1a
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ class GamesController < ApplicationController
def file_edit
entry_and_raw(false)
@content = @repository.cat(@path, @rev)
@content = @repository.cat(@path, @rev).rstrip
respond_to do |format|
format.js
end