mediawiki-extensions-Discus.../tests/cases/sanitize-wikitext-linebreaks.json
Ed Sanders 6459e7dc82 Move wikitext modifiers to modifier.js
Re-create methods in PHP.

Change-Id: Iae6117b65e3b8f50ecc68e1e3ea17c8359bdcb06
2020-07-01 17:06:02 +01:00

28 lines
506 B
JSON

[
{
"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"
}
]