Last modified: 2014-07-23 16:35:34 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 T25674, the corresponding Phabricator task for complete and up-to-date bug report information.
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)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
https://en.wikibooks.org/w/index.php?...
:
Depends on:
Blocks:
  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: ---


Attachments

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 

http://en.wikibooks.org/wiki/User:Duplode/Offending_GeSHi_block

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. http://article.gmane.org/gmane.science.linguistics.wikipedia.technical/54734
Comment 2 Helder 2014-07-23 16:35:34 UTC
I added a simpler test case to
https://en.wikibooks.org/w/index.php?title=Wikibooks:Sandbox&oldid=2684029

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

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.


Navigation
Links