]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/js/editor.js
WordPress 4.7.2
[autoinstalls/wordpress.git] / wp-admin / js / editor.js
index c42611bb2da10e6a44c411811db5ee45ae034388..e3fbaab945bfd52b8a1e32a4693075798bf80baf 100644 (file)
 
                        text = text + '\n\n';
                        text = text.replace( /<br \/>\s*<br \/>/gi, '\n\n' );
-                       text = text.replace( new RegExp( '(<(?:' + blocklist + ')(?: [^>]*)?>)', 'gi' ), '\n$1' );
+                       text = text.replace( new RegExp( '(<(?:' + blocklist + ')(?: [^>]*)?>)', 'gi' ), '\n\n$1' );
                        text = text.replace( new RegExp( '(</(?:' + blocklist + ')>)', 'gi' ), '$1\n\n' );
                        text = text.replace( /<hr( [^>]*)?>/gi, '<hr$1>\n\n' ); // hr is self closing block element
                        text = text.replace( /\s*<option/gi, '<option' ); // No <p> or <br> around <option>