Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F1402
bug785-patch
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 7:08 PM
2014-11-21 19:08:15 (UTC+0)
Size
921 B
Referenced Files
None
Subscribers
None
bug785-patch
View Options
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
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1245
Default Alt Text
bug785-patch (921 B)
Attached To
Mode
T2785: * and # are not always replaced following <pre> in list
Attached
Detach File
Event Timeline
Log In to Comment