mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-27 17:51:09 +00:00
6459e7dc82
Re-create methods in PHP. Change-Id: Iae6117b65e3b8f50ecc68e1e3ea17c8359bdcb06
28 lines
506 B
JSON
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"
|
|
}
|
|
]
|