FIX: missing newline when diff is truncated

FIX: missing newline when diff is truncated

ooops the missing newline there meant the link to GitHub found its way into the diff section

ooops the missing newline there meant the link to GitHub found its way into the diff section

diff --git a/lib/discourse_code_review/importer.rb b/lib/discourse_code_review/importer.rb
index 876a779..93cd7a6 100644
--- a/lib/discourse_code_review/importer.rb
+++ b/lib/discourse_code_review/importer.rb
@@ -44,7 +44,7 @@ module DiscourseCodeReview
 
       truncated_message =
         if commit[:diff_truncated]
-          "\n[... diff too long, it was truncated ...]"
+          "\n[... diff too long, it was truncated ...]\n"
         end
 
       raw = "<div class='excerpt'>\n#{commit[:body]}\n</div>\n\n`‍``diff\n#{diff}\n#{truncated_message}`‍``\n#{link}"

GitHub

1 Like