diff --git a/lib/tests/html2text_test.php b/lib/tests/html2text_test.php index 15c7a2de9f3..295a0698c5b 100644 --- a/lib/tests/html2text_test.php +++ b/lib/tests/html2text_test.php @@ -156,6 +156,16 @@ final class html2text_test extends \basic_testcase { [], 'Interesting text', ], + 'Trailing spaces before newline or tab' => [ + "Some text with trailing space\n\nAnd some more text\n", + [], + '

Some text with trailing space

And some more text

', + ], + 'Trailing spaces before newline or tab (list)' => [ + "\t* Some text with trailing space\n\t* And some more text\n\n", + [], + '', + ], ]; }