Closed matkoniecz closed 3 years ago
I see the same with template parameters.
This is intentional - when you parse a wikitext don't change it, then str(wikicode)
should produce the same result as the input string which was parsed.
What @lahwaacz said. Those objects have a matches()
function which takes care of whitespace and capitalization differences for you (as explained in the README).
outputs
It has an easy workaround, but it would be nice to have it working immediately.
Though maybe there is reason why it is impossible?
I found https://github.com/earwig/mwparserfromhell/issues/14 that sounds like the same issue and fixed? So maybe this is also fixable?
I looked at https://github.com/earwig/mwparserfromhell/issues?q=template+newline+ https://github.com/earwig/mwparserfromhell/issues?q=template+whitespace and https://github.com/earwig/mwparserfromhell/search?q=template+whitespace and "whitespace", "newline" and "limitation" what found https://github.com/earwig/mwparserfromhell#limitations