From c2d5bc9e0e4c3d5acc85c0bff8fd8473813022ba Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Mon, 23 Jan 2006 20:44:56 +0000 Subject: [PATCH] fix previews --- includes/EditPage.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 9a5be6b455..3fcc54ce72 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1101,6 +1101,7 @@ END } else if(preg_match("/\\.js$/", $wgTitle->getText() ) ) { $previewtext = wfMsg('userjspreview'); } + $parserOptions->setTidy(true); $parserOutput = $wgParser->parse( $previewtext , $wgTitle, $parserOptions ); $wgOut->addHTML( $parserOutput->mText ); wfProfileOut( $fname ); @@ -1120,7 +1121,7 @@ END } if ( $this->mMetaData != "" ) $toparse .= "\n" . $this->mMetaData ; - + $parserOptions->setTidy(true); $parserOutput = $wgParser->parse( $this->mArticle->preSaveTransform( $toparse ) ."\n\n", $wgTitle, $parserOptions ); -- 2.20.1