#530: Fix bug where newlines weren't preserved

This commit is contained in:
Toks
2014-02-27 18:44:11 -05:00
parent faaa3bec16
commit 6ed43576b4

View File

@@ -19,7 +19,7 @@
}
Danbooru.Comment.quote_message = function(data) {
var blocks = data["body"].match(/\[\/?quote\]|./gm);
var blocks = data["body"].match(/\[\/?quote\]|.|\n|\r/gm);
var n = 0;
var stripped_body = "";
$.each(blocks, function(i, block) {