Removing stub template removes too many lines
OpenPublic

Description

Intention: To remove a stub template

Expectation: That the stub template would disappear and everything else (references list, navbox) would remain the same

Steps to reproduce:

  1. Go to https://en.wikipedia.org/w/index.php?title=Gastric_volvulus&oldid=567517399 or (probably) any other article that contains these items on separate, adjacent lines:
    • A list of references (in this case, a single bulleted list item)
    • A blank line
    • A stub template
    • A navigation template
  1. Open the article in VisualEditor.
  1. Click on the the stub template to select it.
  1. Press the delete/backspace key (it's same key on a Mac) one time to delete the stub template (and nothing else).

Result:

Instead of getting the slightly shorter expected list:

  • A list of references (in this case, a single bulleted list item)
  • A blank line
  • A navigation template

this produced a single line containing both the reference list item and the navbox, with no intervening spaces or lines:

  • A list of references (in this case, a single bulleted list item)Navigation template

This broke the navbox formatting for readers.


Version: unspecified
Severity: normal
URL: https://en.wikipedia.org/w/index.php?title=Gastric_volvulus&diff=577403274&oldid=576282874

bzimport added a project: VisualEditor.Via ConduitNov 22 2014, 2:14 AM
bzimport set Reference to bz55856.
Whatamidoing-WMF created this task.Via LegacyOct 17 2013, 11:48 PM
Thryduulf added a comment.Via ConduitNov 4 2013, 2:17 PM

Confirmed on Firefox 25/Linux

It seems from very quick experimentation that deleting a template also deletes the preceding line.

Jdforrester-WMF triaged this task as "Low" priority.Via WebJan 15 2015, 1:39 AM
Jdforrester-WMF set Security to None.
Jdforrester-WMF raised the priority of this task from "Low" to "Normal".Via WebJan 20 2015, 6:17 PM
Jdforrester-WMF moved this task to Backlog on the VisualEditor workboard.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.