diff options
author | Sean McGivern <sean@gitlab.com> | 2016-08-17 14:16:29 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2016-08-17 15:55:34 +0100 |
commit | 18f13e8bb8b63b28efb7c3b53a3143a068806225 (patch) | |
tree | a34ed657f25a660ef2d9df6ac84c35cfcb20c8c0 /app/views/notify | |
parent | d1da2e8180d92e5f4a8b5ebb36b0f4e4d0618bf8 (diff) | |
download | gitlab-ce-18f13e8bb8b63b28efb7c3b53a3143a068806225.tar.gz |
Fix email line-height in Outlookoutlook-email-spacing
Outlook seems to handle `white-space: pre` weirdly, so just use `pre`
elements (but only for emails!).
Diffstat (limited to 'app/views/notify')
-rw-r--r-- | app/views/notify/repository_push_email.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/notify/repository_push_email.html.haml b/app/views/notify/repository_push_email.html.haml index c161ecc3463..4dc39a72225 100644 --- a/app/views/notify/repository_push_email.html.haml +++ b/app/views/notify/repository_push_email.html.haml @@ -76,7 +76,7 @@ - if blob && blob.respond_to?(:text?) && blob_text_viewable?(blob) %table.code.white - diff_file.highlighted_diff_lines.each do |line| - = render "projects/diffs/line", line: line, diff_file: diff_file, plain: true + = render "projects/diffs/line", line: line, diff_file: diff_file, plain: true, email: true - else No preview for this file type %br |