From 019b235b0e73ae8926f3237074dc23e2a4a60d47 Mon Sep 17 00:00:00 2001 From: Allan Jardine Date: Sat, 28 Jan 2012 10:08:43 +0000 Subject: [PATCH] Examples: Fix: SyntaxHighlighter was having problems with copy and paste in webkit browsers - fix pushed to syntax highlighter here: https://github.com/alexgorbatchev/SyntaxHighlighter/pull/86 - this is the commit of that fix to the local copy --- examples/examples_support/syntax/js/shCore.js | 3 +++ 1 file changed, 3 insertions(+) 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