Closed kristian-clausal closed 1 month ago
Ah, the issue was with my test, nevermind. I forgot to remove the {{documentation}}
template. I'm still trying to figure out why certain templates have the extra newline, though.
It's the newline inside the onlyinclude
. I'll make a new issue.
On certain Simple English wiktionary pages I noticed the glosses had extract newlines after templates, but not on SE Wiktionary proper, so obviously our bug. Turned out this was an artifact that was generated only by specific templates, like Simple English wiktionary
Template:ti verb
, which looks like:At first I thought this was an issue with newlines or whitespace at the ends of templates that we weren't removing properly (all wikitext source files seem to have a terminal newline by default, and templates get whitespace stripped away at the end), but this doesn't seem to be the case.
I decided to make a test
and the template expansion, or something similar seems to go into an infinite loop:
Using the Simple English extractor leads to a shorter log, but using the English extractor gives the same kind of output except longer (because it tries to do more and thus expands or tries to expand stuff several times, I think.
But in production these repetitions of "(transitive & intransitive)" don't happen, there's just the newline.