Changeset 1882

Show
Ignore:
Timestamp:
2008-04-03 12:35:34 (6 months ago)
Author:
wwalc
Message:

Yet another fix for #1785 (New lines and extra whitespaces removed inside a pre tag)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • MediaWiki/trunk/plugins/mediawiki/fckplugin.js

    r1869 r1882  
    564564                                        } 
    565565                                         
    566                                         textValue = textValue.replace( /[\n\t]/g, ' ' ) ;  
     566                                        if (!this._inLSpace && !this._inPre) { 
     567                                                textValue = textValue.replace( /[\n\t]/g, ' ' ) ;  
     568                                        } 
    567569         
    568570                                        textValue = FCKTools.HTMLEncode( textValue ) ;