pediapress / mwlib

mediawiki parser library
103 stars 35 forks source link

mwlib doesn't recognize noinclude tags if they contain spaces. #1

Closed schmir closed 13 years ago

schmir commented 13 years ago

expanding noinclude tags containing spaces results in:

In [9]: expander.expandstr("<noinclude >foo</noinclude>")
EXPAND: '<noinclude >foo</noinclude>' -> u'<noinclude >foo'
Out[9]: u'<noinclude >foo'

The same might be true for includeonly, onlyinclude (and others?).

schmir commented 13 years ago

fixed with 4adb2daa0a7f5b5f8ed8b20461760b9a1cae4bd6