jsdoc template: clean up menu html.

This commit is contained in:
Jonathan Puckey 2011-05-31 16:36:34 +02:00
parent bcc9d4efcd
commit 048dda45d5

View file

@ -228,21 +228,21 @@ var Utils = {
name = names[0]; name = names[0];
link = names[1]; link = names[1];
} }
return '<li><a href="' + link + '.html">' + name + '</a></li>'; return '<li><a href="' + link + '.html">' + name + '</a></li>\n';
} }
function getRuler() { function getRuler() {
return '<li><hr /></li>'; return '<li><hr /></li>\n';
} }
function getHeading(title) { function getHeading(title) {
return '<li><h3>' + title + '</h3></li>'; return '<li><h3>' + title + '</h3></li>\n';
} }
var first = true, var first = true,
out = '<ul class="package-classes">'; out = '<ul class="package-classes">';
for (var i in classLayout) { for (var i in classLayout) {
out += '<li' + (first ? ' class="first">' : '>'); out += '<li' + (first ? ' class="first">' : '>');
out += '<h2>' + i + '</h2></li>'; out += '<h2>' + i + '</h2></li>\n';
out += parseClassNames(classLayout[i]); out += parseClassNames(classLayout[i]);
first = false; first = false;
} }