VisualEditor: If you insert a gallery into a list, the list formatting remains visible but is removed in wikitext
Open, Stalled, Needs TriagePublic

Description

Intention:
Add an image gallery at the top of a section.

Steps to Reproduce:

  1. Open a page that has a list at the top of the section.
  1. Place your cursor at the top of the list, and Insert > Gallery.

Actual Results:
The bullet remains visible. The text of the list item is on the next line, but indented.

However, when you save, the list formatting (the asterisk at the start of the line) has been removed.

Expected Results:
The gallery would be inserted before the list. That is,

  • List item

would turn into

<gallery>File:Example.jpg
File:Example2.jpg</gallery>

  • List item

instead of into

<gallery>File:Example.jpg
File:Example2.jpg</gallery>List item

(Notice the stray space at the start of the line.)

Reproducible: Always


Version: unspecified
Severity: normal
URL: http://en.wikipedia.beta.wmflabs.org/w/index.php?diff=92775&oldid=92716

Details

Reference
bz65022
bzimport raised the priority of this task from to Needs Triage.
bzimport set Reference to bz65022.

This sort of happens if you insert a references list, which gives you this:

<references />List item

but not for images, math, templates, etc.

Jdforrester-WMF changed the task status from Open to Stalled.Feb 2 2015, 7:24 PM
Krinkle removed a subscriber: Krinkle.Apr 17 2015, 8:04 PM