";", ":", "#", and "*" are being parsed inside <pre>
Closed, ResolvedPublic

Assigned To
None
Priority
Unbreak Now!
Author
bzimport
Subscribers
wikibugs-l
Projects
Reference
bz2857
Description

Author: sr.ribeiro

Description:
dt and dd wiki tags (; and :) are being parsed even if they are inside of <pre>

Cheers,


Version: 1.5.x
Severity: normal
URL: http://commons.wikimedia.org/w/index.php?title=User:Get_It/Sandbox&oldid=524017

bzimport added a project: MediaWiki-Parser.Via ConduitNov 21 2014, 8:42 PM
bzimport added a subscriber: wikibugs-l.
bzimport set Reference to bz2857.
bzimport created this task.Via LegacyJul 14 2005, 2:18 PM
bzimport added a comment.Via ConduitJul 14 2005, 5:36 PM

sr.ribeiro wrote:

(In reply to comment #0)

dt and dd wiki tags (; and :) are being parsed even if they are inside of <pre>

Cheers,

That also goes for lists (* and #).

Cheers,

Wikinaut added a comment.Via ConduitJul 14 2005, 6:20 PM

I also wanted to file these problems

<pre>
#line1
line2
line3
</pre>

is currently not correctly rendered (CVS)

I raised priority, because this will brake hundreds of pages...

Thryduulf added a comment.Via ConduitJul 14 2005, 11:35 PM

I have created a test page showing the rendering errors at
http://en.wikipedia.org/wiki/User:Thryduulf/workspace

for a real-life example see http://tinyurl.com/celev (en:WP:FPC)
(the nominate and support line should be inside the <pre> box

note that as a workaround changing <pre>...</pre> to
<pre><nowiki>...</nowiki></pre> appears to work - see my test
page and the following revision at WP:FPC

Thryduulf added a comment.Via ConduitJul 14 2005, 11:38 PM

just to make it explicit lists using * as well as : or # are also being rendered.

hashar added a comment.Via ConduitJul 15 2005, 12:05 AM

Most probably related to bug 785 fix :/

hashar added a comment.Via ConduitJul 15 2005, 2:27 AM

Reverted part of 785 bug fix. Not sure why I though the part
was useless and deserved to be removed :o)

hashar added a comment.Via ConduitJul 17 2005, 7:22 PM
  • Bug 2887 has been marked as a duplicate of this bug. ***
brion added a comment.Via ConduitJul 22 2005, 9:29 AM
  • Bug 2932 has been marked as a duplicate of this bug. ***
brion added a comment.Via ConduitJul 22 2005, 9:31 AM

Comment from dupe bug 2932:

This change:
http://cvs.sourceforge.net/viewcvs.py/wikipedia/phase3/includes/Parser.php?r1=1.476&r2=1.477

is broken.

<pre>

This line starts with a hash.

</pre>

gets rendered as
+-------------------------------------+

1. This line starts with a hash

+-------------------------------------+

bzimport added a comment.Via ConduitJul 22 2005, 10:15 PM

jeluf wrote:

Fixed in Parser.php, rev 1.482
Testcases for bug 785 still work fine. Not sure that this will be the final
word, though.

Add Comment

Column Prototype
This is a very early prototype of a persistent column. It is not expected to work yet, and leaving it open will activate other new features which will break things. Press "\" (backslash) on your keyboard to close it now.