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


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


* List item

instead of into

File:Example2.jpg</gallery>List item

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

Reproducible: Always

Version: unspecified
Severity: normal


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
Deskana triaged this task as Low priority.Jul 31 2018, 6:42 PM
Deskana changed the task status from Stalled to Open.
Deskana moved this task from To Triage to Freezer on the VisualEditor board.