While trying infobox-parser with another wikitext input, I found some cases where current test data is parsed incorrectly when there is a nowrap template around. The nowrap template instructs to prevent line breaks in its content, this PR replaces nowrap templates with their content in the cleanSource step, and adds assertions for every case of nowrap in the test data. I have marked some of the tests with skip to indicate that there is also some other problem that prevents these cases from being parsed correctly.
While trying infobox-parser with another wikitext input, I found some cases where current test data is parsed incorrectly when there is a
nowrap
template around. The nowrap template instructs to prevent line breaks in its content, this PR replaces nowrap templates with their content in thecleanSource
step, and adds assertions for every case ofnowrap
in the test data. I have marked some of the tests withskip
to indicate that there is also some other problem that prevents these cases from being parsed correctly.