diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-08-21 22:40:21 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-08-21 22:40:21 +0200 |
commit | 03d253975e9400943083770da6d16c127355fc2a (patch) | |
tree | 4612a97cfbb07dbc134ac9a275b5aeb1aef4fc78 /doc | |
parent | 4fc3802d8f1455d5156ef5b185a70353752c461f (diff) | |
download | wikimini-03d253975e9400943083770da6d16c127355fc2a.tar.gz wikimini-03d253975e9400943083770da6d16c127355fc2a.tar.bz2 wikimini-03d253975e9400943083770da6d16c127355fc2a.zip |
Remove Document return type from convert
It doesn't really make sense to make the output that dependent on the
input type. convert_to_document basically does the same - ensuring that
the output is a Document. Templates that call convert recursively can
also call convert_to_document.
Furthermore, since we now pass very short Wikicode into
convert_to_document, there was an exception being raised if there were
less than 2 nodes. This seems to be because of a "smart list" that
mwparserfromhell uses internally, which didn't properly slice if the end
index is out of bounds.
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions