diff --git a/examples/examples_support/syntax/js/shCore.js b/examples/examples_support/syntax/js/shCore.js index 51e9e8c3..e23c0d6b 100644 --- a/examples/examples_support/syntax/js/shCore.js +++ b/examples/examples_support/syntax/js/shCore.js @@ -1798,6 +1798,9 @@ function quickCodeHandler(e) // using \r instead of \r or \r\n makes this work equally well on IE, FF and Webkit code = code.join('\r'); + + // For Webkit browsers, replace nbsp with a breaking space + code = code.replace(/\u00a0/g, " "); // inject