PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Text » Text_Wiki_Mediawiki » Bug #8448

Pre tag should be parsed before any other html-like tags

Details

Submitted2006-08-15 14:44 UTC
Frombjs5075 at rit dot edu
Assignedritzmo
StatusNo Feedback
PackageText_Wiki_Mediawiki
PHP Version5.1.4
OSDebian etch
Roadmaps(Not assigned)

Comments

[2006-08-15 14:44 UTC] bjs5075 at rit dot edu

Description:
------------
The <pre> tags should be parsed-out before any other
HTML-inherited tags (specifically <code>).

Test script:
---------------
<pre>
<code>text</code>
</pre>

Expected result:
----------------
<pre>
<code>text</code>
</pre>

Actual result:
--------------
<pre>
1
</pre>

[2006-08-15 15:03 UTC] ritzmo at php dot net

If you could tell me specifically what you are talking about I could maybe help but your provided test script does not help and no rule actually parses for <pre>-tags at the moment.

[2006-08-15 15:30 UTC] bjs5075 at rit dot edu

Sorry, I have modified my copy slightly to conform to the
Mediawiki markup better. I uncommented the "Pre" parser in
Mediawiki.php and just have it match the regex:

/<pre(?:[^>]*)>\n?(.*?)\n?<\/pre>/s

That just sticks in a token with the pre's enclosed text.
The XHTML renderer just puts the text in a <pre> block.

[2006-08-15 16:03 UTC] ritzmo at php dot net

Thank you for taking the time to report a problem with the package.
This problem may have been already fixed by a previous change that
is in the CVS of the package. Please log into CVS with:

cvs -d :pserver:cvsread@cvs.php.net:/repository login

and check out the CVS repository of this package and upgrade

cvs -d :pserver:cvsread@cvs.php.net:/repository co pear/Text_Wiki_Mediawiki
pear upgrade pear/Text_Wiki_Mediawiki/package2.xml

or

pear upgrade pear/Text_Wiki_Mediawiki/package.xml

If you are able to reproduce the bug with the latest CVS,
please change the status back to "Open".
Again, thank you for your continued support of PEAR.