Page MenuHomePhabricator

By section editing on translatable page, a blank line is added after <translate> tag
Open, Needs TriagePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Open translatable page
  • Click "edit" (or "edit source") link next to a subheading
  • Click "save"

What happens?:
By editing "Section 1", a blank line is added after <translate> tag of "Section 2".

<translate>
== Section 1== <!--T:1-->
</translate>
<translate><!--T:2--> Test1</translate>

{{anchor|Section 2}}
<translate>

== Section 2 == <!--T:3-->
</translate>

What should have happened instead?:
No blank lines are added.

<translate>
== Section 1== <!--T:1-->
</translate>
<translate><!--T:2--> Test1</translate>

{{anchor|Section 2}}
<translate>
== Section 2 == <!--T:3-->
</translate>

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:

Event Timeline

Nikerabbit subscribed.

The Translate extension has no control over this. It sounds like the edit section code automatically adds an empty line before the next section, if missing?

Tacsipacsi subscribed.

I think it’s rMW includes/parser/Parser.php:5756 (at e6ca2a56cd78). Adding MediaWiki-Parser so that the Parsing team has a chance finding this task.

Just wanted to +1 this task and say that I encounter this issue a lot