Improved normalization of selected text
authorAlexander Ebert <ebert@woltlab.com>
Thu, 27 Jun 2013 20:06:58 +0000 (22:06 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Thu, 27 Jun 2013 20:06:58 +0000 (22:06 +0200)
wcfsetup/install/files/js/WCF.Message.js

index a50abce16bc76b811f49f850e6804829de1e24e4..0ecf4670c181b079b62e57f969646611d179f7ed 100644 (file)
@@ -1820,7 +1820,7 @@ WCF.Message.Quote.Handler = Class.extend({
         * @return      string
         */
        _normalize: function(text) {
-               return text.replace(/\r?\n|\r/g, "\n").replace(/\s{2,}/g, ' ');
+               return text.replace(/\r?\n|\r/g, "\n").replace(/\s/g, ' ').replace(/\s{2,}/g, ' ');
        },
        
        /**