mirror of
https://github.com/moodle/moodle.git
synced 2025-03-26 02:22:51 +01:00
The upgraded version of HTML2Text highlighted some bugs in our unit tests. In the IOS test, the HTML content includes a couple of patches of In the previous version of HTML2Text, these were being converted to breaking spaces. In one of these cases, it was then removed due to a trim. The expected texts have been converted to use the correct non-breaking spaces. In the case of the trimmed one, it is no longer trimmed as non-breaking spaces are not trimmed. This gives a truer reflection of the actual text. In the case of the Outlook test, this trailing whitespace is not present in the source. It was likely caused by a bug in the previous version of HTML2Text. In the case of the weblib change, the test was just wrong. Both of the actual characters are encodings for an HTML bullet (decimal and hex) and should both be converted to the relevant UTF8 representation of this bullet.