Page MenuHomePhabricator

Have the possibility to remove white line above when new section is added
Open, Needs TriagePublic

Description

We use the inputbox to have users subscribe themselves to a MassMessage list. They click on the button and then a preloaded text is added.

The link we use is this:
https://nl.wikipedia.org/w/index.php?action=edit&preload=Wikipedia%3AWikiproject%2FThemaweek%2FVerzendlijst%2FPreload&editintro=Wikipedia%3AWikiproject%2FThemaweek%2FVerzendlijst%2FEditnoticeknop&summary=Voeg+mij+toe+aan+de+verzendlijst&nosummary=yes&section=new&title=Wikipedia%3AWikiproject%2FThemaweek%2FVerzendlijst&create=%C2%A0%C2%A0%C2%A0%C2%A0+Voeg+mij+toe+aan+de+verzendlijst+%C2%A0%C2%A0%C2%A0%C2%A0

This is all working fine, besides one detail: when users save the page, a white line is added above the preloaded text (because it is added as new section). We like to remove this white line, because this means we can't use a numbered list (#).

We understand that a white line is needed in many other cases and should remain by default. Therefore the request to add a parameter to the inputbox which makes it possible to remove this white line.

Te reproduced this bug: 1. click on the link above, 2. click Show changes, 3. see in the diff how a white line is added above the preloaded text.

Thank you.

Event Timeline

Romaine created this task.Oct 16 2015, 11:04 AM
Romaine raised the priority of this task from to Needs Triage.
Romaine updated the task description. (Show Details)
Romaine added a subscriber: Romaine.
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptOct 16 2015, 11:04 AM
Tacsipacsi added a subscriber: Tacsipacsi.

It has to be implemented in MediaWiki core, as WikitextContent.php unconditionally adds the line breaks now.