site/js/docurium.js in docurium-0.0.5 vs site/js/docurium.js in docurium-0.1.0

- old
+ new

@@ -152,13 +152,12 @@ retrow.append($('<td>').addClass('comment').append(ret.comment)) } content.append(retdiv) // Show Non-Parsed Function Comments - if (fdata[fname]['comments']) { - content.append($('<pre>').append(fdata[fname]['comments'])) - } + if (fdata[fname]['comments']) + content.append($('<div>').append(fdata[fname]['comments'])) // Show Function Signature ex = $('<code>').addClass('params') ex.append(this.hotLink(fdata[fname]['return']['type'] + ' ' + fname + '(' + fdata[fname]['argline'] + ');')) example = $('<div>').addClass('example') @@ -380,10 +379,14 @@ for(var i=0; i<functions.length; i++) { f = functions[i] argsText = '( ' + fdata[f]['argline'] + ' )' link = $('<a>').attr('href', '#' + groupLink(gname, f)).append(f) $('.content').append($('<h2>').append(link).append($('<small>').append(argsText))) - $('.content').append($('<pre>').append(fdata[f]['rawComments'])) + description = fdata[f]['description'] + if(fdata[f]['comments']) + description += "\n\n" + fdata[f]['comments'] + + $('.content').append($('<div>').addClass('description').append(description)) } return false }, // look for structs and link them