Last modified: 2014-03-13 02:21:10 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57856, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55856 - Removing stub template removes too many lines
Removing stub template removes too many lines
Status: NEW
Product: VisualEditor
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Editing team bugs – take if you're interested!
https://en.wikipedia.org/w/index.php?...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-17 23:48 UTC by WhatamIdoing
Modified: 2014-03-13 02:21 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description WhatamIdoing 2013-10-17 23:48:11 UTC
Intention:  To remove a stub template


Expectation:  That the stub template would disappear and everything else (references list, navbox) would remain the same


Steps to reproduce:

1)  Go to https://en.wikipedia.org/w/index.php?title=Gastric_volvulus&oldid=567517399 or (probably) any other article that contains these items on separate, adjacent lines:

 * A list of references (in this case, a single bulleted list item)
 * A blank line
 * A stub template
 * A navigation template

2)  Open the article in VisualEditor.

3)  Click on the the stub template to select it.

4)  Press the delete/backspace key (it's same key on a Mac) one time to delete the stub template (and nothing else).


Result:

Instead of getting the slightly shorter expected list:

 * A list of references (in this case, a single bulleted list item)
 * A blank line
 * A navigation template

this produced a single line containing both the reference list item and the navbox, with no intervening spaces or lines:

 * A list of references (in this case, a single bulleted list item)Navigation template

This broke the navbox formatting for readers.
Comment 1 Chris McKenna 2013-11-04 14:17:23 UTC
Confirmed on Firefox 25/Linux

It seems from very quick experimentation that deleting a template also deletes the preceding line.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links