diff --git a/app/assets/javascripts/discourse/lib/utilities.js b/app/assets/javascripts/discourse/lib/utilities.js index 16fb66b6317..491e2b6a2b4 100644 --- a/app/assets/javascripts/discourse/lib/utilities.js +++ b/app/assets/javascripts/discourse/lib/utilities.js @@ -269,7 +269,7 @@ Discourse.Utilities = { // is Audio/Video return Discourse.Utilities.uploadLocation(upload.url); } else { - return '' + upload.original_filename + ' (' + I18n.toHumanSize(upload.filesize) + ')'; + return '' + upload.original_filename + ' (' + I18n.toHumanSize(upload.filesize) + ')\n'; } }, diff --git a/test/javascripts/lib/utilities-test.js.es6 b/test/javascripts/lib/utilities-test.js.es6 index 3cea33cbedd..c9f35a948bf 100644 --- a/test/javascripts/lib/utilities-test.js.es6 +++ b/test/javascripts/lib/utilities-test.js.es6 @@ -92,7 +92,7 @@ var getUploadMarkdown = function(filename) { test("getUploadMarkdown", function() { ok(getUploadMarkdown("lolcat.gif") === ''); - ok(getUploadMarkdown("important.txt") === 'important.txt (42 Bytes)'); + ok(getUploadMarkdown("important.txt") === 'important.txt (42 Bytes)\n'); }); test("isAnImage", function() {