Ticket #31297: 31297.diff
File 31297.diff, 538 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/js/editor.js
diff --git src/wp-admin/js/editor.js src/wp-admin/js/editor.js index 4ff70df..c918298 100644
window.switchEditors = { 193 193 content = content.replace( /^\s+/, '' ); 194 194 content = content.replace( /[\s\u00a0]+$/, '' ); 195 195 196 // Convert non-breaking spaces to HTML entities 197 content = content.replace( /\u00a0/g, ' ' ); 198 196 199 // put back the line breaks in pre|script 197 200 if ( preserve_linebreaks ) { 198 201 content = content.replace( /<wp-line-break>/g, '\n' );