MDL-82828 core: Add test for html2text trailing space between tags

This commit is contained in:
Andrew Nicols
2024-08-20 15:04:02 +08:00
parent 32fce988e9
commit 3d5bca08bf
+10
View File
@@ -156,6 +156,16 @@ final class html2text_test extends \basic_testcase {
[],
'Interesting <script type="text/javascript">var what_a_mess = "Yuck!";</script> text',
],
'Trailing spaces before newline or tab' => [
"Some text with trailing space\n\nAnd some more text\n",
[],
'<p>Some text with trailing space </p> <p>And some more text</p>',
],
'Trailing spaces before newline or tab (list)' => [
"\t* Some text with trailing space\n\t* And some more text\n\n",
[],
'<ul><li>Some text with trailing space </li> <li> And some more text </li> </ul>',
],
];
}