diff options
author | ngentile <ngentile@arbor.net> | 2015-07-22 16:58:17 +0300 |
---|---|---|
committer | ngentile <ngentile@arbor.net> | 2015-07-22 16:58:17 +0300 |
commit | dbff6bc106c679edbd135a69ba74532fabe1e996 (patch) | |
tree | a3c0c56f937b72d6b238d7557de44edaaf70bb69 /app/assets/javascripts/diff.js.coffee | |
parent | 39dc39e33529ac3632e5d5a6fa06bf6908fb4fa4 (diff) |
Gitlab Issue 707: Indent unfolded code 1 character
Diffstat (limited to 'app/assets/javascripts/diff.js.coffee')
-rw-r--r-- | app/assets/javascripts/diff.js.coffee | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/diff.js.coffee b/app/assets/javascripts/diff.js.coffee index 069f91c30e1..6d9b364cb8d 100644 --- a/app/assets/javascripts/diff.js.coffee +++ b/app/assets/javascripts/diff.js.coffee @@ -31,6 +31,10 @@ class @Diff bottom: unfoldBottom offset: offset unfold: unfold + # indent is used to compensate for single space indent to fit + # '+' and '-' prepended to diff lines, + # see https://gitlab.com/gitlab-org/gitlab-ce/issues/707 + indent: 1 $.get(link, params, (response) => target.parent().replaceWith(response) |