Page MenuHomePhabricator

VisualEditor: Cutting (removing) last section on the page leaves blank section heading == <nowiki /> ==
Closed, ResolvedPublic1 Estimated 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 /> =="

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:17 AM
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