diff options
Diffstat (limited to 'usr/local/www/code-syntax-highlighter')
-rw-r--r-- | usr/local/www/code-syntax-highlighter/shCore.js | 8 | ||||
-rw-r--r-- | usr/local/www/code-syntax-highlighter/shCore.uncompressed.js | 8 |
2 files changed, 8 insertions, 8 deletions
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(/</g, '<'); - str = str.replace(/\n/gm, ' <br>'); + str = str.replace(/\n/gm, ' <br />'); // 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('<br>', 'gi'); + var regex = new RegExp('<br />', 'gi'); if(regex.test(str)) { - var lines = str.split(' <br>'); + var lines = str.split(' <br />'); str = ''; @@ -339,7 +339,7 @@ dp.sh.Highlighter.prototype.ProcessSmartTabs = function(code) dp.sh.Highlighter.prototype.SwitchToTable = function() { - // Safari fix: for some reason lowercase <br> isn't getting picked up, even though 'i' is set + // Safari fix: for some reason lowercase <br /> isn't getting picked up, even though 'i' is set var lines = this.div.innerHTML.split(/<BR>/gi); var row = null; var cell = null; diff --git a/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js b/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js index d1045ed..9544a8e 100644 --- a/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js +++ b/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js @@ -241,17 +241,17 @@ dp.sh.Highlighter.prototype.AddBit = function(str, css) str = str.replace(/&/g, '&'); str = str.replace(/ /g, ' '); str = str.replace(/</g, '<'); - str = str.replace(/\n/gm, ' <br>'); + str = str.replace(/\n/gm, ' <br />'); // 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('<br>', 'gi'); + var regex = new RegExp('<br />', 'gi'); if(regex.test(str)) { - var lines = str.split(' <br>'); + var lines = str.split(' <br />'); str = ''; @@ -359,7 +359,7 @@ dp.sh.Highlighter.prototype.ProcessSmartTabs = function(code) dp.sh.Highlighter.prototype.SwitchToList = function() { - // thanks to Lachlan Donald from SitePoint.com for this <br/> tag fix. + // thanks to Lachlan Donald from SitePoint.com for this <br /> tag fix. var html = this.div.innerHTML.replace(/<(br)\/?>/gi, '\n'); var lines = html.split('\n'); |