From 18f13e8bb8b63b28efb7c3b53a3143a068806225 Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Wed, 17 Aug 2016 14:16:29 +0100 Subject: Fix email line-height in Outlook Outlook seems to handle `white-space: pre` weirdly, so just use `pre` elements (but only for emails!). --- app/views/notify/repository_push_email.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/views/notify') 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 -- cgit v1.2.1