Changeset 35727
- Timestamp:
- 11/22/2015 07:12:21 PM (10 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/js/editor.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/editor.js
r33624 r35727 237 237 if ( text.indexOf( '<pre' ) !== -1 || text.indexOf( '<script' ) !== -1 ) { 238 238 preserve_linebreaks = true; 239 text = text.replace( /<(pre|script)[^>]*>[\s\S] +?<\/\1>/g, function( a ) {239 text = text.replace( /<(pre|script)[^>]*>[\s\S]*?<\/\1>/g, function( a ) { 240 240 return a.replace( /\n/g, '<wp-line-break>' ); 241 241 });
Note: See TracChangeset
for help on using the changeset viewer.