https://bugzilla.wikimedia.org/show_bug.cgi?id=1581





--- Comment #18 from Ingo Rohloff <ingo.rohl...@lauterbach.com>  2009-11-18 
13:06:38 UTC ---
Created an attachment (id=6800)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=6800)
Patch to fix <pre> in lists problem 2nd try

Ok, seems the patch has to do a little bit more.

Some more explanation: 
the "mInPre" flag in "Parser.php" already is used to handle the interaction
between lists and "<pre>" flags. 
For example
<pre>
#  first line
#  second line
</pre>
already escapes the interpretation of the "#" signs. So this will NOT generate
a list.

>From this "mInPre" handling it seems obvious that 
# first line 
# second line <pre>
  some preforamatted
  text with more than
  onle line
</pre>
# third line

should also work and the code in "Parser->doBlockLevels" already ALMOST allows
it. To me it seems the whole "mInPre" stuff already was supposed to handle the
above WIKI markup.
I think my patch just fixes the "Parster->doBlockLevels" code in the sense that
it provides the INTENDED behaviour.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to