Wiki: indice

master
Alinson S. Xavier 16 years ago
parent c86fcfc5f9
commit c75c854a5d

@ -103,9 +103,9 @@ function enumerate_headers()
}
if(item.match('h5')) {
if(c5 != 0) contents += "</ol>";
if(c5 == 0) contents += "<ol>";
n = c2 + "." + c3 + "." + c5 + "." + (++c5);
n = c1 + "." + c2 + "." + c3 + "." + c4 + "." + (++c5);
contents += "<li><a href='#" + n + "'>" + n + ". " + text + "</a></li>";
text += "<a name='" + n + "'></a>";