FIX: BBCode contents can span multiple lines

This commit is contained in:
Robin Ward
2014-08-22 14:32:06 -04:00
parent 5454c1ed24
commit 300dbdc88b
3 changed files with 94 additions and 97 deletions

View File

@ -62,8 +62,8 @@ test("size tags", function() {
format("[size=asdf]regular[/size]",
"<span class=\"bbcode-size-1\">regular</span>",
"it only supports numbers in bbcode");
format("[size=35]\nNEWLINE\n[/size]",
"<span class=\"bbcode-size-35\"><br>NEWLINE<br></span>",
format("[size=35]NEWLINE\n\ntest[/size]",
"<span class=\"bbcode-size-35\"><p>NEWLINE</p><p>test</p></span>",
"works with newlines");
});