See here:
The infobox is generated as:
{|{{Infobox start}}{{Infobox section}}|}
Adding a linebreak before the end table causes the page to render correctly:
See here:
The infobox is generated as:
{|{{Infobox start}}{{Infobox section}}|}
Adding a linebreak before the end table causes the page to render correctly:
Change 397721 had a related patch set uploaded (by Arlolra; owner: Arlolra):
[mediawiki/services/parsoid@master] [WIP] Handle table end following templates in attribute position
Similarly, here's some cases with indent-pre following a template,
[ 'enwiktionary/قرش', 'itwiki/Renzo Ravenna', 'itwiki/Uéslei', 'itwiki/Russell_Westbrook', 'itwiki/Bartolomé_Macías', 'itwiki/Carlos_Griguol', 'itwiki/Sheldry_Sáez', 'kaawiki/Orta_a\'sir_sxolastikası', 'kaawiki/Texnologiya', 'uzwiki/FIFA Jahon chempionati 2018 saralash bosqichi (AFC)', 'itwiki/Benedetto Petrone', 'itwiki/Catê', 'itwiki/Nordahl_Grieg', 'itwiki/Ottomix', 'itwiki/Stefano_Maderno', 'itwiki/Tōru_Ōkawa', 'itwiki/Ramón Revilla Jr.', 'itwiki/Renato Dell\'Andro', 'itwiki/Maria_de_Cervellòn', 'itwiki/Pascual_Echagüe', 'itwiki/Taylor_Hayes_(attrice_pornografica)', 'itwiki/Lawrence_Krauss', 'itwiki/Felix_Kroos', 'itwiki/Stephanie_McMahon', 'itwiki/Federico Augusto I (re di Sassonia)' ]
See the rendering differences in https://it.wikipedia.org/wiki/Cat%C3%AA vs https://it.wikipedia.org/api/rest_v1/page/html/Cat%C3%AA for example.
Change 397721 abandoned by Arlolra:
Handle table end tag following nl emitting template in attribute position
Reason:
For now ...
This is a known difference because Parsoid tokenizes table tags before templates are expanded. Unless this is a common use case, we should probably lint this away and require table closing tags to be on their own line. But if this is a common use case, we'll probably need to deal with it in the TokenStreamPatcher which exists (as a hack) for scenarios like this to patch up the tokenized stream once templates are expanded by reparsing some string tokens.