Index: /MediaWiki/trunk/FCKeditor.body.php
===================================================================
--- /MediaWiki/trunk/FCKeditor.body.php	(revision 3182)
+++ /MediaWiki/trunk/FCKeditor.body.php	(revision 3183)
@@ -76,14 +76,14 @@
 	public function onLanguageGetMagic(&$magicWords, $langCode) {
 		$magicWords['NORICHEDITOR'] = array( 0, '__NORICHEDITOR__' );
-		
-		return true;
-	}
-	
+
+		return true;
+	}
+
 	public function onParserBeforeInternalParse(&$parser, &$text, &$strip_state) {
 		MagicWord::get( 'NORICHEDITOR' )->matchAndRemove( $text );
-		
-		return true;
-	}
-	
+
+		return true;
+	}
+
 	public function onEditPageShowEditFormFields($pageEditor, $wgOut) {
 		global $wgUser, $wgFCKEditorIsCompatible, $wgTitle, $wgVersion;
@@ -116,5 +116,5 @@
 			}
 		}
-		
+
 		return true;
 	}
@@ -129,11 +129,11 @@
 		$pageEditor->textbox2 = $wgRequest->getVal( 'wpTextbox1' );
 		$pageEditor->textbox1 = $pageEditor->getWikiContent();
-				
-		return true;
-	}
-	
+
+		return true;
+	}
+
 	public function onSanitizerAfterFixTagAttributes($text, $element, &$attribs) {
 		$text = preg_match_all("/Fckmw\d+fckmw/", $text, $matches);
-		
+
 		if (!empty($matches[0][0])) {
 			global $leaveRawTemplates;
@@ -274,5 +274,5 @@
 	/**
 	 * Add FCK script
-	 * 
+	 *
 	 * @param unknown_type $q
 	 * @return unknown
@@ -305,7 +305,7 @@
 			$this->showFCKEditor &= ~RTE_VISIBLE ;
 			//get flag from session
-			$this->showFCKEditor |= $_SESSION['showMyFCKeditor'] ;			
-		}
-	
+			$this->showFCKEditor |= $_SESSION['showMyFCKeditor'] ;
+		}
+
 		if (!$wgUser->getOption( 'showtoolbar' ) || $wgUser->getOption( 'riched_disable' ) || !$wgFCKEditorIsCompatible) {
 			return true;
@@ -349,5 +349,5 @@
 		$script = <<<HEREDOC
 <script type="text/javascript" src="$wgScriptPath/$wgFCKEditorDir/fckeditor.js"></script>
-<script type="text/javascript"> 
+<script type="text/javascript">
 var sEditorAreaCSS = '$printsheet,/mediawiki/skins/monobook/main.css?{$wgStyleVersion}';
 </script>
@@ -363,5 +363,5 @@
 			$script .= 'sEditorAreaCSS += ",'.implode(',', $userStyles).'";';
 		}
-		
+
 		$showRef = false;
 		if (isset ($wgHooks['ParserFirstCallInit']) && (in_array('wfCite',$wgHooks['ParserFirstCallInit']) )){
@@ -377,5 +377,5 @@
 var editorMsgOn = "'. wfMsg( 'textrichditor' ) .'";
 var editorMsgOff = "'. wfMsg( 'tog-riched_disable' ) .'";
-var editorLink = "'. (($this->showFCKEditor & RTE_VISIBLE)? wfMsg( 'tog-riched_disable' ): wfMsg( 'textrichditor' )) .'";		
+var editorLink = "'. (($this->showFCKEditor & RTE_VISIBLE)? wfMsg( 'tog-riched_disable' ): wfMsg( 'textrichditor' )) .'";
 var saveSetting = '. ($wgUser->getOption( 'riched_toggle_remember_state' ) ?  1 : 0) .';
 var RTE_VISIBLE = '.RTE_VISIBLE.';
@@ -390,13 +390,13 @@
 oFCKeditor.Config["CustomConfigurationsPath"] = "'.$wgScriptPath.'/'.$wgFCKEditorExtDir.'/fckeditor_config.js" ;
 oFCKeditor.Config["EditorAreaCSS"] = "'.$wgScriptPath.'/'.$wgFCKEditorExtDir.'/css/fckeditor.css" ;
-oFCKeditor.ToolbarSet = "'. $wgFCKEditorToolbarSet .'" ; 
+oFCKeditor.ToolbarSet = "'. $wgFCKEditorToolbarSet .'" ;
 oFCKeditor.ready = true;
 oFCKeditor.Config["showreferences"] = '.(($showRef)?'true':'false').';
 ';
 		$script .= '</script>';
-		
+
 		$newWinMsg = wfMsg('rich_editor_new_window');
 		$script .= <<<HEREDOC
-<script type="text/javascript"> 
+<script type="text/javascript">
 
 //IE hack to call func from popup
@@ -412,5 +412,5 @@
 function onLoadFCKeditor()
 {
-	if (!(showFCKEditor & RTE_VISIBLE)) 
+	if (!(showFCKEditor & RTE_VISIBLE))
 		showFCKEditor += RTE_VISIBLE;
 	firstLoad = false;
@@ -424,5 +424,5 @@
 			// Get the window (inner) size.
 			var height = window.innerHeight || ( document.documentElement && document.documentElement.clientHeight ) || 550 ;
-			
+
 			// Reduce the height to the offset of the toolbar.
 			var offset = document.getElementById('wikiPreview') || document.getElementById('toolbar') ;
@@ -432,5 +432,5 @@
 				offset = offset.offsetParent ;
 			}
-			
+
 			// Add a small space to be left in the bottom.
 			height -= 20 ;
@@ -439,9 +439,9 @@
 		// Enforce a minimum height.
 		height = ( !height || height < 300 ) ? 300 : height ;
-		
+
 		// Create the editor instance and replace the textarea.
 		oFCKeditor.Height = height ;
 		oFCKeditor.ReplaceTextarea() ;
-		
+
 		// Hide the default toolbar.
 		document.getElementById('toolbar').style.display = 'none' ;
@@ -472,14 +472,14 @@
 						else
 							SRCdoc = SRCiframe.contentDocument ;
-							
+
 						var SRCarea = SRCdoc.getElementById ('xEditingArea').firstChild ;
-						
+
 						if (SRCarea)
 							txtarea = SRCarea ;
 						else
 							return false ;
-							
-					} 
-					else 
+
+					}
+					else
 					{
 						return false ;
@@ -500,5 +500,5 @@
 			var selText, isSample = false ;
 
-			if ( oDoc.selection  && oDoc.selection.createRange ) 
+			if ( oDoc.selection  && oDoc.selection.createRange )
 			{ // IE/Opera
 
@@ -531,6 +531,6 @@
 					oDoc.body.scrollTop = winScroll ;
 
-			} 
-			else if ( txtarea.selectionStart || txtarea.selectionStart == '0' ) 
+			}
+			else if ( txtarea.selectionStart || txtarea.selectionStart == '0' )
 			{ // Mozilla
 
@@ -542,11 +542,11 @@
 				var endPos = txtarea.selectionEnd ;
 				selText = txtarea.value.substring( startPos, endPos ) ;
-				
+
 				//insert tags
-				if (!selText) 
+				if (!selText)
 				{
 					selText = sampleText ;
 					isSample = true ;
-				} 
+				}
 				else if (selText.charAt(selText.length - 1) == ' ')
 				{ //exclude ending space char
@@ -554,13 +554,13 @@
 					tagClose += ' ' ;
 				}
-				txtarea.value = txtarea.value.substring(0, startPos) + tagOpen + selText + tagClose + 
+				txtarea.value = txtarea.value.substring(0, startPos) + tagOpen + selText + tagClose +
 								txtarea.value.substring(endPos, txtarea.value.length) ;
 				//set new selection
-				if (isSample) 
+				if (isSample)
 				{
 					txtarea.selectionStart = startPos + tagOpen.length ;
 					txtarea.selectionEnd = startPos + tagOpen.length + selText.length ;
-				} 
-				else 
+				}
+				else
 				{
 					txtarea.selectionStart = startPos + tagOpen.length + selText.length + tagClose.length ;
@@ -581,8 +581,8 @@
 		selText = selText.substring(0, selText.length - 1);
 		tagClose += ' '
-	} 
+	}
 }
 function initEditor()
-{	
+{
 	var toolbar = document.getElementById('toolbar') ;
 	//show popup or toogle link
@@ -592,5 +592,5 @@
 		fckTools.setAttribute('id', 'fckTools');
 		toolbar.parentNode.insertBefore( fckTools, toolbar );
-		
+
 		var SRCtextarea = document.getElementById( "wpTextbox1" ) ;
 		if (showFCKEditor & RTE_VISIBLE) SRCtextarea.style.display = "none";
@@ -650,5 +650,5 @@
 		return true;
 	}
-	
+
 	var oToggleLink = document.getElementById('toggle_'+ objId );
 	var oPopupLink = document.getElementById('popup_'+ objId );
@@ -671,5 +671,5 @@
 		return true;
 	}
-	
+
 	if (!oFCKeditor.ready) return false;		//sajax_do_call in action
 	if (!FCKeditorAPI) return false;			//not loaded yet
@@ -745,5 +745,5 @@
 		$extraToggles[] = 'riched_use_toggle';
 		$extraToggles[] = 'riched_toggle_remember_state';
-		
+
 		$extraToggles = array_merge($extraToggles, self::$nsToggles);
 		return true;
Index: /MediaWiki/trunk/FCKeditorSajax.body.php
===================================================================
--- /MediaWiki/trunk/FCKeditorSajax.body.php	(revision 3182)
+++ /MediaWiki/trunk/FCKeditorSajax.body.php	(revision 3183)
@@ -53,5 +53,5 @@
 	sort($arr);
 	$ret = implode("\n", $arr);
-	
+
 	return $ret;
 }
Index: /MediaWiki/trunk/fckeditor_config.js
===================================================================
--- /MediaWiki/trunk/fckeditor_config.js	(revision 3182)
+++ /MediaWiki/trunk/fckeditor_config.js	(revision 3183)
@@ -5,5 +5,5 @@
 // When using the modified image dialog you must set this variable. It must
 // correspond to $wgScriptPath in LocalSettings.php.
-FCKConfig.mwScriptPath = '' ;     
+FCKConfig.mwScriptPath = '' ;
 
 // Setup the editor toolbar.
Index: /MediaWiki/trunk/plugins/mediawiki/dialogs/link.html
===================================================================
--- /MediaWiki/trunk/plugins/mediawiki/dialogs/link.html	(revision 3182)
+++ /MediaWiki/trunk/plugins/mediawiki/dialogs/link.html	(revision 3183)
@@ -47,5 +47,5 @@
 
 var bLinkEqualsName	= false ;
-	
+
 window.onload = function()
 {
@@ -69,7 +69,7 @@
 	if ( sHRef == null )
 		sHRef = oLink.getAttribute( 'href' , 2 ) || '' ;
-		
+
 	sHRef = FCKConfig.ProtectedSource.Revert(sHRef, 0);		//#2509
-		
+
 	if ( sHRef == oLink.innerHTML )
 		bLinkEqualsName = true ;
@@ -77,5 +77,5 @@
 	if ( sHRef.toLowerCase().StartsWith( 'rtecolon' ) )
 		sHRef = ":" + sHRef.substring(8) ;
-			
+
 	GetE('txtUrl').value = sHRef ;
 }
@@ -90,17 +90,17 @@
 	if ( searchTimer )
 		window.clearTimeout( searchTimer ) ;
-		
+
 	if ( link.StartsWith( '#' ) )
 	{
 		SetSearchMessage( FCKLang.wikiLnkNoSearchAnchor || 'anchor link... no search for it' ) ;
 		return ;
-	} 
-	
+	}
+
 	if ( link.StartsWith( 'mailto:' ) )
 	{
 		SetSearchMessage( FCKLang.wikiLnkNoSearchMail || 'e-mail link... no search for it' ) ;
 		return ;
-	} 
-	
+	}
+
 	if( /^\w+:\/\//.test( link ) )
 	{
@@ -119,5 +119,5 @@
 		return ;
 	}
-	
+
 	SetSearchMessage( FCKLang.wikiLnkStopTyping || 'stop typing to search' ) ;
 	searchTimer = window.setTimeout( StartSearch, 500 ) ;
@@ -142,5 +142,5 @@
 	var results = result.responseText.Trim().split( '\n' ) ;
 	var select = GetE( 'xWikiResults' ) ;
-	
+
 	ClearSearch() ;
 
@@ -166,5 +166,5 @@
 
 	while ( select.options.length > 0 )
-		select.remove( 0 ) 
+		select.remove( 0 )
 }
 
@@ -202,5 +202,5 @@
 		if (asLinkPath != null)
 			sInnerHtml = asLinkPath[1];  // use matched path
-		
+
 		// Create a new (empty) anchor.
 		aLinks = [ oEditor.FCK.InsertElement( 'a' ) ] ;
Index: /MediaWiki/trunk/plugins/mediawiki/dialogs/ref.html
===================================================================
--- /MediaWiki/trunk/plugins/mediawiki/dialogs/ref.html	(revision 3182)
+++ /MediaWiki/trunk/plugins/mediawiki/dialogs/ref.html	(revision 3183)
@@ -82,5 +82,5 @@
 		oRef.className = 'fck_mw_ref' ;
 	}
-	
+
 	var refData = FCKTools.HTMLEncode( GetE('xRefText').value ).Trim().replace( /"/g, '&quot;' ) ;
 	oRef.innerHTML = refData ;
Index: /MediaWiki/trunk/plugins/mediawiki/dialogs/special.html
===================================================================
--- /MediaWiki/trunk/plugins/mediawiki/dialogs/special.html	(revision 3182)
+++ /MediaWiki/trunk/plugins/mediawiki/dialogs/special.html	(revision 3183)
@@ -117,5 +117,5 @@
 			FCKTools.AddSelectOption( select, results[i], results[i] ) ;
 	}
-	
+
 	if ( sSelectedTag ) {
 		select.value = sSelectedTag ;
@@ -135,5 +135,5 @@
 	GetE('xTemplateRaw').value = FCKTools.HTMLDecode(oTemplateSpan.innerHTML).replace(/fckLR/g,'\r\n' ).replace( /&quot;/g, '"' ) ;
 	var tagName = oTemplateSpan.getAttribute('_fck_mw_tagname').toLowerCase();
-	
+
 	sSelectedTag = tagName ;
 	GetE('xSelectTag').value = tagName;
@@ -164,9 +164,9 @@
 		SetAttribute( oTemplateSpan, '_fck_mw_customtag', 'true' ) ;
 	}
-	
+
 	var templateData = FCKTools.HTMLEncode(GetE('xTemplateRaw').value.Trim().replace(/(\r\n|\n)/g, 'fckLR' )).replace( /"/g, '&quot;' ) ;
-	
+
 	oTemplateSpan.innerHTML = templateData ;
-	SetAttribute( oTemplateSpan, '_fck_mw_tagname', GetE('xSelectTag').value ) ;   
+	SetAttribute( oTemplateSpan, '_fck_mw_tagname', GetE('xSelectTag').value ) ;
 
 	switch (GetE('xSelectTag').value)
@@ -194,5 +194,5 @@
 		break;
 	}
-	
+
 	if ( !oFakeImage )
 	{
@@ -201,5 +201,5 @@
 		oFakeImage	= FCK.InsertElement( oFakeImage ) ;
 	}
-	else 
+	else
 		oFakeImage.className = sFakeClass ;
 
Index: /MediaWiki/trunk/plugins/mediawiki/dialogs/template.html
===================================================================
--- /MediaWiki/trunk/plugins/mediawiki/dialogs/template.html	(revision 3182)
+++ /MediaWiki/trunk/plugins/mediawiki/dialogs/template.html	(revision 3183)
@@ -96,17 +96,17 @@
 	oEditor.window.parent.sajax_request_type = 'GET' ;
 	oEditor.window.parent.sajax_do_call( 'wfSajaxSearchTemplateFCKeditor',[empty], LoadSearchResults ) ;
-	
+
 	if ( !oTemplateSpan ) return ;
 
 	var inputText = FCKTools.HTMLDecode(oTemplateSpan.innerHTML);
 	inputText = FCKConfig.ProtectedSource.Revert(inputText, 0);		//#2509
-	if (inputText.length>0 && inputText.indexOf('{{#')<0 && inputText.indexOf('{{:')<0 ) 
+	if (inputText.length>0 && inputText.indexOf('{{#')<0 && inputText.indexOf('{{:')<0 )
 	{
 		var templateName = inputText.substring(2,inputText.indexOf('fckLR'));
-		if (inputText.indexOf('fckLR')<1) 
+		if (inputText.indexOf('fckLR')<1)
 			templateName = inputText.substring(2,inputText.indexOf('|'));
-		if (inputText.indexOf('|')<1) 
+		if (inputText.indexOf('|')<1)
 			templateName = inputText.substring(2,inputText.indexOf('}}'));
-			
+
 		SetUrl(templateName.charAt(0).toUpperCase() + templateName.substr(1));
 	}
@@ -129,8 +129,8 @@
 		oTemplateSpan.className = 'fck_mw_template' ;
 	}
-	
+
 	var protectedValue = FCKConfig.ProtectedSource.Protect(GetE('xTemplateRaw').value);
 	var templateData = FCKTools.HTMLEncode(protectedValue.toString().Trim().replace(/(\r\n|\n)/g, 'fckLR')).replace( /"/g, '&quot;' ) ;
-	
+
 	if ( !( /^{{[\s\S]+}}$/.test( templateData ) ) )
 	{
@@ -138,5 +138,5 @@
 		return false ;
 	}
-	
+
 	oTemplateSpan.innerHTML = templateData ;
 
Index: /MediaWiki/trunk/plugins/mediawiki/fckplugin.js
===================================================================
--- /MediaWiki/trunk/plugins/mediawiki/fckplugin.js	(revision 3182)
+++ /MediaWiki/trunk/plugins/mediawiki/fckplugin.js	(revision 3183)
@@ -44,5 +44,5 @@
 	tbButton.Create = function()		{return 0;}
 	tbButton.Disable  = function()	{return 0;}
-	tbButton.RefreshState  = function()	{return 0;} 
+	tbButton.RefreshState  = function()	{return 0;}
 }
 
@@ -55,13 +55,13 @@
 if ( !FCKConfig.showreferences ) {		//hack to disable MW_References  button
 	tbButton.Create = function()		{return 0;}
-	tbButton.Disable  = function()	{return 0;} 
-	tbButton.RefreshState  = function()	{return 0;} 
+	tbButton.Disable  = function()	{return 0;}
+	tbButton.RefreshState  = function()	{return 0;}
 }
 
 FCKReferences.prototype.Execute = function()
 {
-	if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG ) 
+	if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
 		return ;
-	
+
 	FCKUndo.SaveUndoStep() ;
 
@@ -70,5 +70,5 @@
 	e.setAttribute("_fck_mw_tagname", "references");
 	e.className = "fck_mw_references";
-	
+
 	oFakeImage = FCK.InsertElement( FCKDocumentProcessor_CreateFakeImage( 'FCK__MWReferences', e ) ) ;
 }
@@ -117,8 +117,8 @@
 }
 
-FCKToolbarButton.prototype.Click = function() 
+FCKToolbarButton.prototype.Click = function()
 {
 	var oToolbarButton = this._ToolbarButton || this ;
-	
+
 	// for some buttons, do something else instead...
 	var CMode = false ;
@@ -130,5 +130,5 @@
 			var oDoc = window.parent.popup;
 
-		switch (oToolbarButton.CommandName) 
+		switch (oToolbarButton.CommandName)
 		{
 			case 'Bold' 		: oDoc.FCKeditorInsertTags ('\'\'\'', '\'\'\'', 'Bold text', document) ; CMode = true ; break ;
@@ -139,5 +139,5 @@
 		}
 	}
-	
+
 	if ( !CMode )
 		FCK.ToolbarSet.CurrentInstance.Commands.GetCommand( oToolbarButton.CommandName ).Execute() ;
@@ -148,5 +148,5 @@
 {
 	_inPre : false,
-	_inLSpace : false,	
+	_inLSpace : false,
 
 	/*
@@ -263,5 +263,5 @@
 					return ;
 
-				if ( sNodeName == 'br' && ( this._inPre || this._inLSpace ) ) 
+				if ( sNodeName == 'br' && ( this._inPre || this._inLSpace ) )
 				{
 					stringBuilder.push( "\n" ) ;
@@ -270,5 +270,5 @@
 					return ;
 				}
-					
+
 				// Remove the <br> if it is a bogus node.
 				if ( sNodeName == 'br' && htmlNode.getAttribute( 'type', 2 ) == '_moz' )
@@ -309,10 +309,10 @@
 
 					var len = stringBuilder.length ;
-					
+
 					if ( !basicElement[2] )
 					{
 						this._AppendChildNodes( htmlNode, stringBuilder, prefix ) ;
 						// only empty element inside, remove it to avoid quotes
-						if ( ( stringBuilder.length == len || (stringBuilder.length == len + 1 && !stringBuilder[len].length) ) 
+						if ( ( stringBuilder.length == len || (stringBuilder.length == len + 1 && !stringBuilder[len].length) )
 							&& basicElement[0].charAt(0) == "'")
 						{
@@ -350,8 +350,8 @@
  									stringBuilder.push( '\n' + prefix ) ;
 							}
-							
+
 							var parent = htmlNode.parentNode ;
 							var listType = "#" ;
-							
+
 							while ( parent )
 							{
@@ -371,8 +371,8 @@
 								parent = parent.parentNode ;
 							}
-							
+
 							stringBuilder.push( listType ) ;
 							this._AppendChildNodes( htmlNode, stringBuilder, prefix + listType ) ;
-							
+
 							break ;
 
@@ -383,10 +383,10 @@
 							var href = htmlNode.getAttribute( '_fcksavedurl' ) ;
 							var hrefType		= htmlNode.getAttribute( '_fck_mw_type' ) || '' ;
-							
+
 							if ( href == null )
 								href = htmlNode.getAttribute( 'href' , 2 ) || '' ;
 
 							var isWikiUrl = true ;
-							
+
 							if ( hrefType == "media" )
 								stringBuilder.push( '[[Media:' ) ;
@@ -406,5 +406,5 @@
 								var testInner = FCKConfig.ProtectedSource.Revert(htmlNode.innerHTML, 0);
 								if (href.toLowerCase().StartsWith( 'category:' )) testInner = 'Category:'+testInner;
-								testInner = testInner.replace(/&amp;/, "&") 
+								testInner = testInner.replace(/&amp;/, "&")
 								if ( testInner == FCKConfig.ProtectedSource.Revert(href, 0) ) pipeline = false;
 							}
@@ -423,16 +423,16 @@
 
 							break ;
-							
+
 						case 'dl' :
-						
+
 							this._AppendChildNodes( htmlNode, stringBuilder, prefix ) ;
 							var isFirstLevel = !htmlNode.parentNode.nodeName.IEquals( 'ul', 'ol', 'li', 'dl', 'dd', 'dt' ) ;
 							if ( isFirstLevel && stringBuilder[ stringBuilder.length - 1 ] != "\n" )
 								stringBuilder.push( '\n') ;
-							
+
 							break ;
 
 						case 'dt' :
-						
+
 							if( stringBuilder.length > 1)
 							{
@@ -443,9 +443,9 @@
 							stringBuilder.push( ';' ) ;
 							this._AppendChildNodes( htmlNode, stringBuilder, prefix + ";") ;
-							
+
 							break ;
 
 						case 'dd' :
-						
+
 							if( stringBuilder.length > 1)
 							{
@@ -456,7 +456,7 @@
 							stringBuilder.push( ':' ) ;
 							this._AppendChildNodes( htmlNode, stringBuilder, prefix + ":" ) ;
-							
+
 							break ;
-							
+
 						case 'table' :
 
@@ -489,5 +489,5 @@
 
 									if ( htmlNode.rows[r].cells[c].tagName.toLowerCase() == "th" )
-										stringBuilder.push( '!' ) ; 
+										stringBuilder.push( '!' ) ;
 									else
 										stringBuilder.push( '|' ) ;
@@ -597,5 +597,5 @@
 									stringBuilder.push( FCKTools.HTMLDecode(htmlNode.innerHTML).replace(/fckLR/g,'\r\n') ) ;
 									return ;
-								
+
 								case 'fck_mw_magic' :
 									stringBuilder.push( htmlNode.innerHTML ) ;
@@ -621,8 +621,8 @@
 									sNodeName = 'gallery' ;
 									break ;
-									
+
 								case 'fck_mw_onlyinclude' :
 									sNodeName = 'onlyinclude' ;
-									
+
 									break ;
 							}
@@ -634,5 +634,5 @@
 						case 'pre' :
 							var attribs = this._GetAttributesStr( htmlNode ) ;
-							
+
 							if ( htmlNode.className == "_fck_mw_lspace")
 							{
@@ -676,5 +676,5 @@
 								}
 							}
-						
+
 							break ;
 						default :
@@ -702,8 +702,8 @@
 			case 3 :
 
-				var parentIsSpecialTag = htmlNode.parentNode.getAttribute( '_fck_mw_customtag' ) ; 
+				var parentIsSpecialTag = htmlNode.parentNode.getAttribute( '_fck_mw_customtag' ) ;
 				var textValue = htmlNode.nodeValue;
-	
-				if ( !parentIsSpecialTag ) 
+
+				if ( !parentIsSpecialTag )
 				{
 					if ( FCKBrowserInfo.IsIE && this._inLSpace ) {
@@ -716,9 +716,9 @@
 						textValue = textValue.replace( /\n(?! )/g, "\n " ) ;
 					}
-					
+
 					if (!this._inLSpace && !this._inPre) {
-						textValue = textValue.replace( /[\n\t]/g, ' ' ) ; 
+						textValue = textValue.replace( /[\n\t]/g, ' ' ) ;
 					}
-	
+
 					textValue = FCKTools.HTMLEncode( textValue ) ;
 					textValue = textValue.replace( /\u00A0/g, '&nbsp;' ) ;
@@ -751,9 +751,9 @@
 						textValue = textValue.replace( /\|/g, '&#124;' ) ;
 				}
-				else 
+				else
 				{
 					textValue = FCKTools.HTMLDecode(textValue).replace(/fckLR/g,'\r\n');
 				}
-				
+
 				stringBuilder.push( textValue ) ;
 				return ;
@@ -877,7 +877,7 @@
 			FCK.EditingArea.Textarea.parentNode.appendChild( loading, FCK.EditingArea.Textarea ) ;
 			// if we have a standard Edittools div, hide the one containing wikimarkup
-			if (edittools_markup) {			
+			if (edittools_markup) {
 				edittools_markup.style.display = 'none' ;
-			}	
+			}
 
 			// Use Ajax to transform the Wikitext to HTML.
@@ -904,5 +904,5 @@
 	// Templates and magic words.
 	var aSpans = document.getElementsByTagName( 'SPAN' ) ;
-	
+
 	var eSpan ;
 	var i = aSpans.length - 1 ;
@@ -947,5 +947,5 @@
 				if ( className == null )
 					className = 'FCK__MWOnlyinclude' ;
-					
+
 				var oImg = FCKDocumentProcessor_CreateFakeImage( className, eSpan.cloneNode(true) ) ;
 				oImg.setAttribute( '_' + eSpan.className, 'true', 0 ) ;
@@ -971,5 +971,5 @@
 		}
 	}
-	
+
 	// InterWiki / InterLanguage links
 	var aHrefs = document.getElementsByTagName( 'A' ) ;
@@ -991,6 +991,6 @@
 				{
 					a.innerHTML = a.innerHTML.substring(8);
-				}			
-			}			
+				}
+			}
 		}
 	}
