Koha Test Wiki MW Canasta on Koha Portainer

Test major Koha Wiki changes or bug fixes here without fear of breaking the production wiki.

For the current Koha Wiki, visit https://wiki.koha-community.org .

Template:Plain text/testcases

From Koha Test Wiki MW Canasta on Koha Portainer
Jump to navigation Jump to search

Template:Testcases notice

background

by -DePiep (talk) 18:15, 3 April 2020 (UTC) Input string has nested span tags. Current Module:Plain text does not handle these as expected. See Template:Plain text/testcases: output is blank.

In Module:Plain text/sandbox I have simply repeated the stripping line :gsub('<span.->(.-)</span>', '%1'). That works as expected & intended.


Case background: {{Val}} formats compound numbers, and also adds tags like:

{{Val|123.45|7}}123.45±7
<span class="nowrap"><span data-sort-value="7002123450000000000♠"></span>123.45<span style="margin-left:0.3em;margin-right:0.15em;">±</span>7</span>

Nesting the module or template call in-page does not solve it.

I propose to consider implementation of this sandbox trial.

PRoBLEM with sandbox: triple nestings go wrong

Nested spans

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Template:Test case

Other tests

Template:Test case

Template:Test case