Make WordPress Core

Ticket #31297: 31297.2.diff

File 31297.2.diff, 536 bytes (added by Kau-Boy, 9 years ago)

Updated patch for the lastest trunk version of the JS file

  • src/wp-admin/js/editor.js

     
    195195                        html = html.replace( /^\s+/, '' );
    196196                        html = html.replace( /[\s\u00a0]+$/, '' );
    197197
     198                        // Convert non-breaking spaces to HTML entities
     199                        html = html.replace( /\u00a0/g, ' ' );
     200
    198201                        // put back the line breaks in pre|script
    199202                        if ( preserve_linebreaks ) {
    200203                                html = html.replace( /<wp-line-break>/g, '\n' );