# HG changeset patch # User ivanl # Date 1249899970 -3600 # Node ID 5dc2963cd75f394b2c292f9534122413cb03bd95 # Parent 6544cc5386ce58998db4a82a0632dc536727b8e1 1.0rc14 Fixed bbcode rendering diff -r 6544cc5386ce -r 5dc2963cd75f Symbian.org/Forums.js --- a/Symbian.org/Forums.js Thu Jul 30 16:17:56 2009 +0100 +++ b/Symbian.org/Forums.js Mon Aug 10 11:26:10 2009 +0100 @@ -472,17 +472,35 @@ function convertTag(tag, fulltag, tagContent) { tag = tag.toLowerCase(); + var param = null; + var eqsign = fulltag.indexOf("="); // onclick=\"openURL('" + item.url + "'); + if (eqsign > -1) { + param = fulltag.substring(eqsign+1); + } switch(tag) { + case '*': return bbcode2html(tagContent); case 'b':case 'i':case 'u':case 's':case 'sup':case 'sub':case 'h1':case 'h2':case 'h3':case 'h4':case 'h5':case 'h6':case 'table':case 'tr':case 'th':case 'td': { - return '<' + tag + '>' + tagContent + ""; + return '<' + tag + '>' + bbcode2html(tagContent) + ""; } - case 'quote': return '
' + tagContent + '
'; + case 'font': return '' + bbcode2html(tagContent) + ''; + case 'size': return '' + bbcode2html(tagContent) + ''; + case 'color': return '' + bbcode2html(tagContent) + ''; + case 'left': return '
' + bbcode2html(tagContent) + '
'; + case 'right': return '
' + bbcode2html(tagContent) + '
'; + case 'center': return '
' + bbcode2html(tagContent) + '
'; + case 'list': return tagContent; // todo + case 'php': + case 'code': return '
' + tagContent + '
'; + case 'html':{ + var escaped = tagContent.replace(//g, ">"); + return '
' + escaped + '
'; + } + case 'quote': return '
Quote:
' + tagContent + '
'; case 'url': { - var eqsign = fulltag.indexOf("="); // onclick=\"openURL('" + item.url + "'); if ( eqsign > -1 ) { return "
" + tagContent + '
'; diff -r 6544cc5386ce -r 5dc2963cd75f Symbian.org/Main.js --- a/Symbian.org/Main.js Thu Jul 30 16:17:56 2009 +0100 +++ b/Symbian.org/Main.js Mon Aug 10 11:26:10 2009 +0100 @@ -51,7 +51,7 @@ var wikiBaseUrl = symbianOrgBaseUrl+"/wiki/index.php"; // Update variables -var myversion = "1.0rc13"; +var myversion = "1.0rc14"; var versionWikiPageUrl = wikiBaseUrl + "/Symbian.org_WRT_Widget"; var versionWikiPageString = "Current widget version is ["; var downloadUrl = symbianOrgBaseUrl + "/wiki/images/c/c5/Symbian.org.wgz"; diff -r 6544cc5386ce -r 5dc2963cd75f Symbian.org/style.css --- a/Symbian.org/style.css Thu Jul 30 16:17:56 2009 +0100 +++ b/Symbian.org/style.css Mon Aug 10 11:26:10 2009 +0100 @@ -51,3 +51,11 @@ border-color: gray gray gray gray; background-color: white; } + +.codebox { + font: normal 12px Arial, sans-serif; + border-width: 1px 1px 1px 1px; + padding: 1px 1px 1px 1px; + border-style: inset inset inset inset; + border-color: gray gray gray gray; +}