mediawiki-extensions-Discus.../tests/cases/sanitize-wikitext-linebreaks.json

28 lines
506 B
JSON
Raw Normal View History

[
{
"msg": "Two linebreaks",
"wikitext": "Foo\n\nbar\n\nbaz",
"expected": "Foo\nbar\nbaz"
},
{
"msg": "Three linebreaks",
"wikitext": "Foo\n\nbar\n\nbaz",
"expected": "Foo\nbar\nbaz"
},
{
"msg": "R+N linebreaks",
"wikitext": "Foo\r\nbar\r\nbaz",
"expected": "Foo\nbar\nbaz"
},
{
"msg": "Two R+N linebreaks",
"wikitext": "Foo\r\n\r\nbar\r\n\r\nbaz",
"expected": "Foo\nbar\nbaz"
},
{
"msg": "R linebreaks",
"wikitext": "Foo\rbar\rbaz",
"expected": "Foo\nbar\nbaz"
}
]