Changeset 38594
- Timestamp:
- 09/13/2016 06:02:23 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/editor.js
r38039 r38594 275 275 text = text + '\n\n'; 276 276 text = text.replace( /<br \/>\s*<br \/>/gi, '\n\n' ); 277 text = text.replace( new RegExp( '(<(?:' + blocklist + ')(?: [^>]*)?>)', 'gi' ), '\n $1' );277 text = text.replace( new RegExp( '(<(?:' + blocklist + ')(?: [^>]*)?>)', 'gi' ), '\n\n$1' ); 278 278 text = text.replace( new RegExp( '(</(?:' + blocklist + ')>)', 'gi' ), '$1\n\n' ); 279 279 text = text.replace( /<hr( [^>]*)?>/gi, '<hr$1>\n\n' ); // hr is self closing block element
Note: See TracChangeset
for help on using the changeset viewer.