mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
add linebreaks when uploading a file
This commit is contained in:
parent
0634834009
commit
c4f93846f9
2 changed files with 2 additions and 2 deletions
|
@ -92,7 +92,7 @@ var getUploadMarkdown = function(filename) {
|
|||
|
||||
test("getUploadMarkdown", function() {
|
||||
ok(getUploadMarkdown("lolcat.gif") === '<img src="/uploads/123/abcdef.ext" width="100" height="200">');
|
||||
ok(getUploadMarkdown("important.txt") === '<a class="attachment" href="/uploads/123/abcdef.ext">important.txt</a> (42 Bytes)');
|
||||
ok(getUploadMarkdown("important.txt") === '<a class="attachment" href="/uploads/123/abcdef.ext">important.txt</a> (42 Bytes)\n');
|
||||
});
|
||||
|
||||
test("isAnImage", function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue