Fix for <poem> after r62416
authorConrad Irwin <conrad@users.mediawiki.org>
Sat, 13 Feb 2010 14:41:04 +0000 (14:41 +0000)
committerConrad Irwin <conrad@users.mediawiki.org>
Sat, 13 Feb 2010 14:41:04 +0000 (14:41 +0000)
includes/parser/Parser.php

index 6cddaf3..a918646 100644 (file)
@@ -392,9 +392,13 @@ class Parser
                                }
                                $this->mStripState->general->setPair( $marker, $output );
                        }
-                       $text = $this->mStripState->unstripGeneral( $text );
                }
 
+               # This was originally inserted for transparent tag hooks (now deprecated)
+               # but some extensions (notably <poem>) rely on the extra unstripGeneral()
+               # after unstripNoWiki() so they can modify the contents of <nowiki> tags.
+               $text = $this->mStripState->unstripGeneral( $text );
+
                $text = Sanitizer::normalizeCharReferences( $text );
 
                if ( ( $wgUseTidy && $this->mOptions->mTidy ) || $wgAlwaysUseTidy ) {