diff options
author | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-04-14 12:44:35 +0200 |
---|---|---|
committer | Zeger-Jan van de Weg <zegerjan@gitlab.com> | 2016-04-28 21:28:39 +0200 |
commit | ad99404d2588e182a115d89b0b457d957e8ca7b6 (patch) | |
tree | 527619b709363e1515c41c0d8f861995389a58d4 /app/helpers | |
parent | 3fd0f5374447f0763c60d5b10b35d4a6f6981497 (diff) | |
download | gitlab-ce-ad99404d2588e182a115d89b0b457d957e8ca7b6.tar.gz |
Properly handle bigger files
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/blob_helper.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/helpers/blob_helper.rb b/app/helpers/blob_helper.rb index a4d7c425d0f..474c6f27374 100644 --- a/app/helpers/blob_helper.rb +++ b/app/helpers/blob_helper.rb @@ -3,8 +3,8 @@ module BlobHelper Gitlab::Highlight.new(blob_name, blob_content, nowrap: nowrap) end - def highlight(blob_name, blob_content, nowrap: false) - Gitlab::Highlight.highlight(blob_name, blob_content, nowrap: nowrap) + def highlight(blob_name, blob_content, nowrap: false, plain: false) + Gitlab::Highlight.highlight(blob_name, blob_content, nowrap: nowrap, plain: plain) end def no_highlight_files |