diff --git a/doc/reference.html b/doc/reference.html
index 0d4f2d7..73a1b81 100644
--- a/doc/reference.html
+++ b/doc/reference.html
@@ -233,7 +233,6 @@ using a SAX callback.">mxmlSAXLoadString
mxml_sax_event_e
mxml_type_e
-
Add a node to a tree.
diff --git a/mxmldoc.c b/mxmldoc.c
index 4960518..20dbdc2 100644
--- a/mxmldoc.c
+++ b/mxmldoc.c
@@ -3296,11 +3296,13 @@ write_html(const char *section, /* I - Section */
"", out);
write_string(out, title, OUTPUT_HTML);
fputs("\n"
- "Documentation/index.html\n", out);
+ "Documentation/index.html\n"
+ "\n", out);
write_toc(out, doc, introfile, NULL, 1);
- fputs("\n"
+ fputs("\n"
+ "\n"
"\n"
"\n", out);
@@ -4714,7 +4716,7 @@ write_toc(FILE *out, /* I - Output file */
*end, /* End of line */
*anchor, /* Anchor name */
quote, /* Quote character for value */
- level = '1', /* Current heading level */
+ level = '2', /* Current heading level */
newlevel; /* New heading level */
int inelement; /* In an element? */
@@ -5017,7 +5019,9 @@ write_toc(FILE *out, /* I - Output file */
function = find_public(function, doc, "function");
}
- if (!xml)
+ if (xml)
+ fputs("\n", out);
+ else
fputs("\n", out);
}
@@ -5062,7 +5066,9 @@ write_toc(FILE *out, /* I - Output file */
scut = find_public(scut, doc, "typedef");
}
- if (!xml)
+ if (xml)
+ fputs("\n", out);
+ else
fputs("\n", out);
}
@@ -5107,7 +5113,9 @@ write_toc(FILE *out, /* I - Output file */
scut = find_public(scut, doc, "struct");
}
- if (!xml)
+ if (xml)
+ fputs("\n", out);
+ else
fputs("\n", out);
}
@@ -5153,7 +5161,9 @@ write_toc(FILE *out, /* I - Output file */
scut = find_public(scut, doc, "union");
}
- if (!xml)
+ if (xml)
+ fputs("\n", out);
+ else
fputs("\n", out);
}
@@ -5198,7 +5208,9 @@ write_toc(FILE *out, /* I - Output file */
arg = find_public(arg, doc, "variable");
}
- if (!xml)
+ if (xml)
+ fputs("\n", out);
+ else
fputs("\n", out);
}
@@ -5248,13 +5260,6 @@ write_toc(FILE *out, /* I - Output file */
else
fputs("\n", out);
}
-
- /*
- * That's it!
- */
-
- if (!xml)
- fputs("\n", out);
}