Page MenuHomePhabricator

VisualEditor: Transclusion editor shows empty "content" sections for newlines
Closed, DeclinedPublic

Description

  1. Go to [[Ahab]] and edit in VE
  2. Select the succession box at the bottom and edit with transclusion editor
  3. Observe that "content" sections are present that look blank, but on closer inspection, contain only a newline

Some templates (like succession boxes) unfortunately need to be on separate lines in the wikitext :( But the current UI for this is non-obvious and could be made better.


Version: unspecified
Severity: enhancement

Details

Reference
bz49866

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 2:11 AM
bzimport set Reference to bz49866.

Yeah, this is a bit of a mess. We could get Parsoid to /always/ do a newline between templates of the same generated block, I suppose? Gabriel, thoughts?

This is the exact wikitext that is interspersed between template calls, so follows our DOM spec (see http://www.mediawiki.org/wiki/Parsoid/MediaWiki_DOM_spec#Template_content).

The decision whether that should be presented in the UI is one for the VisualEditor team to make. Non-whitespace content like '|-' for a new table row is probably important to show, while pure ws could also be hidden from view.

The work-around that Parsoid did to hide these means that these don't appear unless it's mis-matched, which is reasonable enough that I'm going to flag as WORKSFORME.