diff options
author | ayvis <ayvis.infra@gmail.com> | 2014-03-19 22:12:40 +0100 |
---|---|---|
committer | ayvis <ayvis.infra@gmail.com> | 2014-03-19 22:12:40 +0100 |
commit | ec879e3db4d36212ee200d19e1f7e92f9f4d83c9 (patch) | |
tree | d1c3de232bdec86bb24f622c50cbcbeec46bc8b3 /usr/local/www/code-syntax-highlighter | |
parent | f3bdba41f7ba86e1f608fdf39cbc9783b63554c5 (diff) | |
download | pfsense-ec879e3db4d36212ee200d19e1f7e92f9f4d83c9.zip pfsense-ec879e3db4d36212ee200d19e1f7e92f9f4d83c9.tar.gz |
replaced BR with br
replaced uppercase html tags with lowaercase
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 d21af72..7193620 100644 --- a/usr/local/www/code-syntax-highlighter/shCore.js +++ b/usr/local/www/code-syntax-highlighter/shCore.js @@ -220,16 +220,16 @@ dp.sh.Highlighter.prototype.AddBit = function(str, css) for(var i = 0; i < lines.length; i++) { - span = document.createElement('SPAN'); + span = document.createElement('span'); span.className = css; span.innerHTML = lines[i]; this.div.appendChild(span); - // don't add a <BR> for the last line + // don't add a <br /> for the last line if(i + 1 < lines.length) { - this.div.appendChild(document.createElement('BR')); + this.div.appendChild(document.createElement('br')); } } } @@ -340,7 +340,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 - var lines = this.div.innerHTML.split(/<BR>/gi); + var lines = this.div.innerHTML.split(/<br \/>/gi); var row = null; var cell = null; var html = ''; diff --git a/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js b/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js index 9544a8e..0903a07 100644 --- a/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js +++ b/usr/local/www/code-syntax-highlighter/shCore.uncompressed.js @@ -236,7 +236,7 @@ dp.sh.Highlighter.prototype.AddBit = function(str, css) if(str == null || str.length == 0) return; - var span = this.CreateElement('SPAN'); + var span = this.CreateElement('span'); str = str.replace(/&/g, '&'); str = str.replace(/ /g, ' '); @@ -257,15 +257,15 @@ dp.sh.Highlighter.prototype.AddBit = function(str, css) for(var i = 0; i < lines.length; i++) { - span = this.CreateElement('SPAN'); + span = this.CreateElement('span'); span.className = css; span.innerHTML = lines[i]; this.div.appendChild(span); - // don't add a <BR> for the last line + // don't add a <br /> for the last line if(i + 1 < lines.length) - this.div.appendChild(this.CreateElement('BR')); + this.div.appendChild(this.CreateElement('br')); } } else |