Last modified: 2014-07-23 16:35:34 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 23674 - enclose="none" clashes with the Wiki markup for lists
enclose="none" clashes with the Wiki markup for lists
Status: NEW
Product: MediaWiki extensions
Classification: Unclassified
SyntaxHighlight (GeSHi) (Other open bugs)
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2010-05-26 23:30 UTC by Daniel Mlot
Modified: 2014-07-23 16:35 UTC (History)
1 user (show)

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


Description Daniel Mlot 2010-05-26 23:30:24 UTC
Lines starting with #, * or : disrupt GeSHi blocks if the enclose="none" option is deployed. An illustration of the bug can be seen at

There, the first two lines inside the GeSHi block are Matlab comments, which start with #. Before the second line, however, the formatting and syntax highlight are disabled, and a numbered list item is displayed at the comment line. Inspection of the page source reveals the enclosing <span class="mw-geshi matlab source-matlab"> is prematurely closed before the second line. The problem only happens when enclose="none" is used.
Comment 1 Bugmeister Bot 2011-08-19 19:12:43 UTC
Unassigning default assignments.
Comment 2 Helder 2014-07-23 16:35:34 UTC
I added a simpler test case to

In that page the
<syntaxhighlight lang="matlab" enclose="none">
# foo
# bar
# baz
is parsed to
<p><span class="mw-geshi matlab source-matlab"># foo<br></span></p>
<li><span class="mw-geshi matlab source-matlab"><span class="kw2">bar</span><br></span></li>

and I suspect the brokenness of the first item ("# foo") is related to bug 12974. Someone with a better understanding of the Parser should check if this bug is a duplicate of that one.

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