Last modified: 2012-12-08 22:54:29 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 T18170, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16170 - MW should only interpret ':' as a list entry when it is on the beginning on a newline, not in the definitionlist-header
MW should only interpret ':' as a list entry when it is on the beginning on a...
Status: NEW
Product: MediaWiki
Classification: Unclassified
Parser (Other open bugs)
unspecified
All All
: Low enhancement with 2 votes (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-29 07:09 UTC by Gnu1742
Modified: 2012-12-08 22:54 UTC (History)
1 user (show)

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


Attachments

Description Gnu1742 2008-10-29 07:09:30 UTC
You define a definitionlist like this:

;The Events at 17:42 UTC

Mediawiki interprets this as an Definitionlist with "The Events at 17" as the Definition (<dt>) and "42 UTC" as the first Definitionlistentry (<dd>) and so this construct is rendered like this:

The Events at 17 (<-- Bold)
    42 UTC 

So the colon in 17:42 should not be interpreted as a definitionlistentry. A colon should only be interpreted as a definitionlistentry when it is at the beginning of a new line.
Comment 1 Chad H. 2008-10-29 15:03:23 UTC
I see the issue, but I think it was made this way on purpose. I got the following from comments in Parser.php:

> # The one nasty exception: definition lists work like this:
> # ; title : definition text
> # So we check for : in the remainder text to split up the
> # title and definition, without b0rking links.

While standard practice is to separate them by lines (meaning :'s should be usable on a title line ';'), I'm unsure as to what this might break, changing the behavior.

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


Navigation
Links