From 8cd558b61b9c24ee109993d8e76ddc4870ffa4fa Mon Sep 17 00:00:00 2001 From: ayvis Date: Fri, 14 Mar 2014 21:24:03 +0100 Subject: xhtml Compliance replaced
,
and
with
--- usr/local/www/code-syntax-highlighter/shCore.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'usr/local/www/code-syntax-highlighter/shCore.js') diff --git a/usr/local/www/code-syntax-highlighter/shCore.js b/usr/local/www/code-syntax-highlighter/shCore.js index 6ec5915..d21af72 100644 --- a/usr/local/www/code-syntax-highlighter/shCore.js +++ b/usr/local/www/code-syntax-highlighter/shCore.js @@ -204,17 +204,17 @@ dp.sh.Highlighter.prototype.AddBit = function(str, css) str = str.replace(/&/g, '&'); str = str.replace(/ /g, ' '); str = str.replace(/'); + str = str.replace(/\n/gm, ' 
'); // when adding a piece of code, check to see if it has line breaks in it // and if it does, wrap individual line breaks with span tags if(css != null) { - var regex = new RegExp('
', 'gi'); + var regex = new RegExp('
', 'gi'); if(regex.test(str)) { - var lines = str.split(' 
'); + var lines = str.split(' 
'); str = ''; @@ -339,7 +339,7 @@ dp.sh.Highlighter.prototype.ProcessSmartTabs = function(code) dp.sh.Highlighter.prototype.SwitchToTable = function() { - // Safari fix: for some reason lowercase
isn't getting picked up, even though 'i' is set + // Safari fix: for some reason lowercase
isn't getting picked up, even though 'i' is set var lines = this.div.innerHTML.split(/
/gi); var row = null; var cell = null; -- cgit v1.1