Ticket #31297: 31297.2.diff
File 31297.2.diff, 536 bytes (added by , 9 years ago) |
---|
-
src/wp-admin/js/editor.js
195 195 html = html.replace( /^\s+/, '' ); 196 196 html = html.replace( /[\s\u00a0]+$/, '' ); 197 197 198 // Convert non-breaking spaces to HTML entities 199 html = html.replace( /\u00a0/g, ' ' ); 200 198 201 // put back the line breaks in pre|script 199 202 if ( preserve_linebreaks ) { 200 203 html = html.replace( /<wp-line-break>/g, '\n' );