Page MenuHomePhabricator

Two paragraphs in a <blockquote> is rendered as one
Open, Needs TriagePublicBUG REPORT

Description

Steps to reproduce:

  1. Edit a page.
  2. Add a <blockquote> tag with two paragraphs in it, with empty line between.
  3. Save.

Actual result:
The HTML contains one paragraph.

Expected result:
The HTML contains two paragraph.

Additional information:
I did some tests over at https://www.mediawiki.org/wiki/User:Sebastian_Berlin_(WMSE)/T309778 with different ways of making two paragraphs. The way that I got to work was to explicitly add <p> tags.

Event Timeline

matmarex added a subscriber: matmarex.

FYI, another reliable way to achieve this is to put the <blockquote> and </blockquote> tags on their own lines: https://www.mediawiki.org/w/index.php?title=User:Sebastian_Berlin_(WMSE)/T309778&diff=5248625&oldid=5248456

The paragraph wrapping is unintuitive, but it probably can't be changed to avoid breaking existing content that accidentally relies on it.

Tacsipacsi changed the subtype of this task from "Task" to "Bug Report".Sun, Jun 5, 7:52 AM
Tacsipacsi added a subscriber: Tacsipacsi.

Maybe a lint error could be added for this case? First, it’s more likely to be unintended than intended, so it’s useful for users to know; second, if there’s a lint error, the violation count can be used to make an informed decision about changing the behavior.