https://bugzilla.wikimedia.org/show_bug.cgi?id=50122
Roan Kattouw <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected], | |[email protected] Component|ContentEditable |General Assignee|jforrester+veteambztickets@ |[email protected] |wikimedia.org | Product|VisualEditor |Parsoid Summary|VisualEditor: showing |Parsoid renders trailing |additional empty table |newlines in tables as |cells in ptwiki infoboxes |paragraphs, making ptwiki | |infoboxes huge --- Comment #5 from Roan Kattouw <[email protected]> --- This is now looking much better, but it's still not fixed. There's lots of whitespace added at the bottom, causing the infobox to be much much taller than it should be. Moving to Parsoid: the table is also too big in http://parsoid-lb.eqiad.wikimedia.org/ptwiki/Albert_Einstein?oldid=39283789 This happens because, in the expansion of the template, lots and lots of newlines (more specifically, the pattern newline-newline-space or sometimes newline-newline-newline-space) are produced. You can see these in http://pt.wikipedia.org/w/api.php?action=query&prop=revisions&rvprop=content&rvexpandtemplates&format=yamlfm&titles=Albert_Einstein (search for "\n\n\n \n\n"). This seems to be due to templates like https://pt.wikipedia.org/w/index.php?title=Predefini%C3%A7%C3%A3o:Info&action=edit with lots of if statements (in the 200s) that leak newlines. The result is a table that looks like: {| |- | Real || rows || here |- .... |- | Last || row || here |- [lots of newlines] |} The wikitext parser ignores these newlines, but Parsoid converts them all to paragraphs inside of a row with a single cell. In this case, this row contains about 232 paragraphs and has a total height of 5615px. I haven't been able to reproduce this locally though. Parsoid seems to quash the newlines just fine, even if I try to generate them with {{echo}}. -- You are receiving this mail because: You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
