diff options
Diffstat (limited to 'usr/local/www/code-syntax-highlighter/shCore.uncompressed.js')
-rw-r--r-- | usr/local/www/code-syntax-highlighter/shCore.uncompressed.js | 8 |
1 files changed, 4 insertions, 4 deletions
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'); |