Page MenuHomePhabricator

Visual Editor: Don't remove line break between templates when adding a third template
Closed, DuplicatePublic

Description

When adding a block template between two others that are on separate lines, Visual Editor (or Parsoid?) removes the line break between the existing templates and puts them all three on one line in the source, e.g.

{{for}}
{{globalise}}

becomes

{{for}}{{refimprove}}{{globalise}}

The desired result is:

{{for}}
{{refimprove}}
{{globalise}}

Diffs:

This is almost certainly related to T135667 but I'm not certain if it is the same or not.