Last modified: 2011-05-09 17:28:37 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 T15223, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 13223 - Allow blank lines between list items
Allow blank lines between list items
Status: RESOLVED DUPLICATE of bug 9342
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
1.12.x
All All
: Normal enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
bugsmash
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-03-02 10:14 UTC by Tim Starling
Modified: 2011-05-09 17:28 UTC (History)
3 users (show)

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


Attachments

Description Tim Starling 2008-03-02 10:14:35 UTC
The following should be interpreted as a single numbered list:

# A

# B

# C

The current interpretation is bizarre and useless.
Comment 1 Daniel Friesen 2008-03-02 11:02:33 UTC
The current implementation is done with consideration for the use:
# A
# B
# C

# 1
# 2
# 3

If this were to change in the way you are mentioning then the ability to use multiple numeric lists on a page after each other would become broken. And would thus break likely current uses.

Additionally a blank line has always been a marker for a new paragraph, so new lists being started should be expected as there is a blank line in between them signaling that there shouldn't be any relation to each other.
Comment 2 Tim Starling 2008-03-02 11:47:25 UTC
No, the current implementation was done by accident. There is no unified set of principles from which MediaWiki wikitext could be derived. It's a mishmash of principles and source code shortcuts. 

If for some reason you want to have two numbered lists, with only a blank line separating, and no text introducing the second numbered list, you could use:

# A
# B
<nowiki></nowiki>

# C
# D

But I can't imagine why anybody would want to do that. There should always be some text in between the two lists, explaining why the list numbering is being restarted.

To speak in positive terms: the reason for allowing blank lines in between list items is to allow the author to visually separate the items in the wikitext source. A single character at the start of a line is not easily seen when the list items are long lines, wrapped many times. 

Some authors attempt to separate their list items in this way already, assuming that MediaWiki will understand what they mean. Those people are rightly surprised and disappointed when they discover it doesn't work. See for instance bug 13194. 
Comment 3 Michael Daly 2008-03-02 16:26:20 UTC
In some implementations of markup languages (E.g. IBM's SGML/Script VS), they have the notion of a compact vs non-compact list.  I've often wished for such a capability in wikitext.  Unfortunately, there's no "start list" wikitext as there is in HTML so allow me to use an HTML-like notation to demonstrate:

<ul compact>
<li>Blah 1
<li>Blah 2
</ul>

would produce:

*Blah 1
*Blah 2

while:

<ul>
<li>Blah 1
<li>Blah 2
</ul>

would produce:

*Blah 1

*Blah 2


Obviously, some kind of change in notation would be required in wikitext that could be awkward to sort out and have backward-compatible.  Someone might be able to think of a way of doing this with a bit of CSS and a convenient notation - maybe:

*Blah 1   versus  *open|Blah 1

where the latter uses a CSS that adds padding below to provide space.  If the name between the * (or#) and the pipe is perfectly general, Mediawiki:Common.css can be used to create different variants of spacing or formatting of lists.
Comment 4 Tim Starling 2008-03-11 11:50:43 UTC
(In reply to comment #3)
> In some implementations of markup languages (E.g. IBM's SGML/Script VS), they
> have the notion of a compact vs non-compact list.

Please submit your unrelated feature requests as a separate bug report, not as a comment on an existing bug report. 
Comment 5 Purodha Blissenbach 2008-04-07 12:23:25 UTC
1) The above idea of a non-compact list can easily be had by wrapping a normal wikitext list in a <div> with an approprate class= attribute and some simple CSS.

2) IF someone deals with redoing some of the list generating code, please see also bug 13642 which might be solved with the same code.
Comment 6 Andrew Garrett 2008-12-04 02:17:06 UTC

*** This bug has been marked as a duplicate of bug 9342 ***

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


Navigation
Links