summaryrefslogtreecommitdiffstats
path: root/usr/local/www/code-syntax-highlighter
diff options
context:
space:
mode:
authorayvis <ayvis.infra@gmail.com>2014-03-14 21:24:03 +0100
committerayvis <ayvis.infra@gmail.com>2014-03-14 21:24:03 +0100
commit8cd558b61b9c24ee109993d8e76ddc4870ffa4fa (patch)
tree528f7b2f8ea80e0779907147273d99008e31b5d6 /usr/local/www/code-syntax-highlighter
parente1d68dde59717fc5f125796f07070a654e28ec43 (diff)
downloadpfsense-8cd558b61b9c24ee109993d8e76ddc4870ffa4fa.zip
pfsense-8cd558b61b9c24ee109993d8e76ddc4870ffa4fa.tar.gz
xhtml Compliance
replaced <br>, <br/> and </br> with <br />
Diffstat (limited to 'usr/local/www/code-syntax-highlighter')
-rw-r--r--usr/local/www/code-syntax-highlighter/shCore.js8
-rw-r--r--usr/local/www/code-syntax-highlighter/shCore.uncompressed.js8
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, '&amp;');
str = str.replace(/ /g, '&nbsp;');
str = str.replace(/</g, '&lt;');
- str = str.replace(/\n/gm, '&nbsp;<br>');
+ str = str.replace(/\n/gm, '&nbsp;<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('&nbsp;<br>');
+ var lines = str.split('&nbsp;<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, '&amp;');
str = str.replace(/ /g, '&nbsp;');
str = str.replace(/</g, '&lt;');
- str = str.replace(/\n/gm, '&nbsp;<br>');
+ str = str.replace(/\n/gm, '&nbsp;<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('&nbsp;<br>');
+ var lines = str.split('&nbsp;<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');
OpenPOWER on IntegriCloud