Page MenuHomePhabricator

bug785-patch

Authored By
bzimport
Nov 21 2014, 7:08 PM
Size
921 B
Referenced Files
None
Subscribers
None

bug785-patch

Index: includes/Parser.php
===================================================================
RCS file: /cvsroot/wikipedia/phase3/includes/Parser.php,v
retrieving revision 1.476
diff -u -3 -p -r1.476 Parser.php
--- includes/Parser.php 8 Jul 2005 06:13:00 -0000 1.476
+++ includes/Parser.php 8 Jul 2005 08:03:01 -0000
@@ -1753,9 +1753,6 @@ class Parser
if ( $openmatch or $closematch ) {
$paragraphStack = false;
$output .= $this->closeParagraph();
- if($preOpenMatch and !$preCloseMatch) {
- $this->mInPre = true;
- }
if ( $closematch ) {
$inBlockElem = false;
} else {
@@ -1800,6 +1797,10 @@ class Parser
}
wfProfileOut( "$fname-paragraph" );
}
+ // somewhere above we forget to get out of pre block (bug 785)
+ if($preCloseMatch && $this->mInPre) {
+ $this->mInPre = false;
+ }
if ($paragraphStack === false) {
$output .= $t."\n";
}

File Metadata

Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1245
Default Alt Text
bug785-patch (921 B)

Event Timeline