Last modified: 2014-03-13 02:21:09 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 T61001, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59001 - VisualEditor: List formatting not applied unless there is a blank line between items
VisualEditor: List formatting not applied unless there is a blank line betwe...
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-12-27 18:28 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-12-27 18:28:17 UTC
Intention:
Turn a list of seven single-spaced items into a properly formatted list.

Steps to Reproduce:
1. Start with a page that contains a list of items that do not have blank lines between them.

2. Open VisualEditor and select all the items.

3. Click the 'list' button.

Actual Results:  
Only the first item is given list formatting.

If some items are double-spaced and others are not, then double-spaced items are given list formatting, and any items without a blank line above them (except the first item, which always becomes list-formatted) is left as a plain paragraph rather than being formatted as a list item.

Expected Results:  
All the items would be given list formatting.

Reproducible: Always
Comment 1 WhatamIdoing 2013-12-27 18:35:41 UTC
At https://en.wikipedia.org/w/index.php?title=User:Whatamidoing_(WMF)/sandbox&diff=587948540&oldid=587948443 you can see the 'workaround'.  This wikitext:

* Monday is washing day.
Tuesday is ironing day.
Wednesday is mending day.
Thursday is marketing day.
Friday is cleaning day.
Saturday is baking day. 

displays like this in view mode:

* Monday is washing day.
Tuesday is ironing day. Wednesday is mending day. Thursday is marketing day. Friday is cleaning day. Saturday is baking day. 

and displays like this within VisualEditor:

* Monday is washing day.
Tuesday is ironing day.↵Wednesday is mending day.↵Thursday is marketing day.↵Friday is cleaning day.↵Saturday is baking day. 

If you select the subsequent items (Tuesday through Saturday), and click the button to apply list formatting, then only the "Tuesday" line acquires list formatting.  This looks in VisualEditor like this:  

* Monday is washing day.
* Tuesday is ironing day.↵Wednesday is mending day.↵Thursday is marketing day.↵Friday is cleaning day.↵Saturday is baking day. 

If you save and re-open, you see this:

* Monday is washing day.
* Tuesday is ironing day.

Wednesday is mending day.↵Thursday is marketing day.↵Friday is cleaning day.↵Saturday is baking day. 

and the wikitext is this:

* Monday is washing day.

* Tuesday is ironing day.

Wednesday is mending day.
Thursday is marketing day.
Friday is cleaning day.
Saturday is baking day. 

(Notice the HTML-list-formatting-breaking unwanted blank line between Monday and Tuesday.)

Selecting the "↵" and hitting return produces the desired list.

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


Navigation
Links