Page MenuHomePhabricator

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


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 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:

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".Jun 5 2022, 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.