Page MenuHomePhabricator

Page Previews on nn.wp have an additional line break and are in <pre> for articles where some templates are used
Closed, DuplicatePublic

Description

The Page Previews feature shows a line break that is not shown in the article where some templates are used. Examples can be found here, listed with the template used.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMay 18 2019, 8:33 AM

Indeed, The extract_html value of https://nn.wikipedia.org/api/rest_v1/page/summary/Ragnar_Frisch is
<p><b>Ragnar Anton Kittil Frisch</b></p>\n<pre>var ein nyskapande norsk økonom. </pre>

Aklapper renamed this task from Page Previews shows a line break not present in the article where some templates are used to Page Previews on nn.wp have an additional line break and are in <pre> for articles where some templates are used.May 18 2019, 12:56 PM

The problem also occurs in Visual editor mode. It could be related to the use of brackets in the template, as a similar template where brackets are added manually (Mal:Datoar) does not get the unwanted linebreak and pre-formatting. It does, however, get an unexpected space added after it.

ovasileva triaged this task as Medium priority.Jun 3 2019, 10:36 AM
Jdlrobson added a subscriber: Jdlrobson.

Olga: Summary endpoint is managed by RI.

LGoto moved this task from Needs Triage to Backlog on the Parsoid board.Feb 15 2020, 12:05 AM