Index: trunk/extensions/UsabilityInitiative/js/plugins/jquery.wikiEditor.js |
— | — | @@ -369,7 +369,7 @@ |
370 | 370 | .replace( / /g, " " ) // We inserted these to prevent IE from collapsing spaces |
371 | 371 | .replace( /\<p[^\>]*\>/gi, "\n" ) // IE uses </p><p> for user-inserted line breaks |
372 | 372 | .replace( /\<\/p[^\>]*\>/gi, "" ) |
373 | | - .replace( /\<div[^\>]*\>/gi, "\n" ) // Webkit uses </p><p> for user-inserted line breaks |
| 373 | + .replace( /\<div[^\>]*\>/gi, "\n" ) // Webkit uses </div><div> for user-inserted line breaks |
374 | 374 | .replace( /\<\/div[^\>]*\>/gi, "" ) |
375 | 375 | + '</pre>' ); |
376 | 376 | // Get rid of the noincludes when getting text |