Ticket #37066: 37066.patch
File 37066.patch, 514 bytes (added by , 8 years ago) |
---|
-
wp-admin/js/editor.js
222 222 html = html.replace( /\n[\s\u00a0]+\n/g, '\n\n' ); 223 223 224 224 // Rrplace <br> tags with a line break. 225 html = html.replace( /\s* <br ?\/?>\s*/gi, '\n' );225 html = html.replace( /\s*?(\n)?\s*<br ?\/?>\s*/gi, '$1\n' ); 226 226 227 227 // Fix line breaks around <div>. 228 228 html = html.replace( /\s*<div/g, '\n<div' );