VisualEditor: Cutting (removing) last section on the page leaves blank section heading == <nowiki /> ==
Closed, ResolvedPublic1 Story Points

Description

Intention:
Rearrange the sections on a page

Steps to Reproduce:

  1. Select the entire last section
  2. Cut (Command-X) the section
  3. Paste it elsewhere

Actual Results:
The formatting for the section heading (not the formatting for the last line) remains at the end of the page.

Expected Results:
The last line should either disappear entirely (be replaced by a slug) or be set to default/Paragraph styling

Reproducible: Always

Removing the blank section heading produced its own problems; look for the next bug report.


Version: unspecified
Severity: minor
URL: https://en.wikipedia.org/w/index.php?title=Celebrity_branding&diff=589156664&oldid=583130311
See Also:
T52100: VisualEditor: Deletion across a header caused it to remain without WS, leading Parsoid to output "==<nowiki/>=="
T57769: VisualEditor: Copying and pasting results in new blank section heading: "== <nowiki /> =="

Details

Reference
bz59647
bzimport set Reference to bz59647.

Change 162310 had a related patch set uploaded by Jforrester:
MWHeading: Don't put self in output if contents are blank or whitespace

https://gerrit.wikimedia.org/r/162310

Change 162310 had a related patch set uploaded (by Jforrester):
MWHeading: Don't put self in output if contents are blank or whitespace

https://gerrit.wikimedia.org/r/162310

Patch-For-Review

Change 162310 merged by jenkins-bot:
For empty / whitespace-only headings, output <p> instead of <h#>

https://gerrit.wikimedia.org/r/162310

Jdforrester-WMF closed this task as "Resolved".Mar 20 2015, 11:25 PM
Jdforrester-WMF removed a project: Patch-For-Review.
Jdforrester-WMF moved this task from Nominated to Done on the VisualEditor 2014/15 Q3 blockers board.