Page MenuHomePhabricator

VE allows new lines in sub-ref details while editing
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue:

  • Edit a sub-reference in VisualEditor
  • Enter a new line in details

Screenshot from 2025-12-02 11-30-58.png (505×987 px, 60 KB)

What happens?:

  • Sub-ref details are displayed in two lines in the reference pop-up

Screenshot from 2025-12-02 11-31-09.png (371×524 px, 20 KB)

  • Reference list doesn't display the new line

Screenshot from 2025-12-02 11-31-15.png (371×524 px, 13 KB)

  • Wikitext shows a new line

Screenshot from 2025-12-02 11-31-26.png (549×1 px, 59 KB)

  • After saving the edit, the new line no longer appears when editing the page again

Screenshot from 2025-12-02 11-31-45.png (281×561 px, 15 KB)

What should have happened instead?:

  • Don't show the new line, matching the behaviour of the reference list (and the page after saving and editing again)