Fix Nodes.xml generation.

pull/193/head
Michael R Sweet 16 years ago
parent fd57e148c5
commit 4e75d3579f
  1. 1
      doc/reference.html
  2. 35
      mxmldoc.c

@ -233,7 +233,6 @@ using a SAX callback.">mxmlSAXLoadString</a></li>
<li><a href="#mxml_sax_event_e" title="SAX event type.">mxml_sax_event_e</a></li> <li><a href="#mxml_sax_event_e" title="SAX event type.">mxml_sax_event_e</a></li>
<li><a href="#mxml_type_e" title="The XML node type.">mxml_type_e</a></li> <li><a href="#mxml_type_e" title="The XML node type.">mxml_type_e</a></li>
</ul></li> </ul></li>
</ul>
<h2 class="title"><a name="FUNCTIONS">Functions</a></h2> <h2 class="title"><a name="FUNCTIONS">Functions</a></h2>
<h3 class="function"><a name="mxmlAdd">mxmlAdd</a></h3> <h3 class="function"><a name="mxmlAdd">mxmlAdd</a></h3>
<p class="description">Add a node to a tree.</p> <p class="description">Add a node to a tree.</p>

@ -3296,11 +3296,13 @@ write_html(const char *section, /* I - Section */
"<Name>", out); "<Name>", out);
write_string(out, title, OUTPUT_HTML); write_string(out, title, OUTPUT_HTML);
fputs("</Name>\n" fputs("</Name>\n"
"<Path>Documentation/index.html</Path>\n", out); "<Path>Documentation/index.html</Path>\n"
"<Subnodes>\n", out);
write_toc(out, doc, introfile, NULL, 1); write_toc(out, doc, introfile, NULL, 1);
fputs("</Node>\n" fputs("</Subnodes>\n"
"</Node>\n"
"</TOC>\n" "</TOC>\n"
"</DocSetNodes>\n", out); "</DocSetNodes>\n", out);
@ -4714,7 +4716,7 @@ write_toc(FILE *out, /* I - Output file */
*end, /* End of line */ *end, /* End of line */
*anchor, /* Anchor name */ *anchor, /* Anchor name */
quote, /* Quote character for value */ quote, /* Quote character for value */
level = '1', /* Current heading level */ level = '2', /* Current heading level */
newlevel; /* New heading level */ newlevel; /* New heading level */
int inelement; /* In an element? */ int inelement; /* In an element? */
@ -5017,7 +5019,9 @@ write_toc(FILE *out, /* I - Output file */
function = find_public(function, doc, "function"); function = find_public(function, doc, "function");
} }
if (!xml) if (xml)
fputs("</Subnodes></Node>\n", out);
else
fputs("</ul></li>\n", out); fputs("</ul></li>\n", out);
} }
@ -5062,7 +5066,9 @@ write_toc(FILE *out, /* I - Output file */
scut = find_public(scut, doc, "typedef"); scut = find_public(scut, doc, "typedef");
} }
if (!xml) if (xml)
fputs("</Subnodes></Node>\n", out);
else
fputs("</ul></li>\n", out); fputs("</ul></li>\n", out);
} }
@ -5107,7 +5113,9 @@ write_toc(FILE *out, /* I - Output file */
scut = find_public(scut, doc, "struct"); scut = find_public(scut, doc, "struct");
} }
if (!xml) if (xml)
fputs("</Subnodes></Node>\n", out);
else
fputs("</ul></li>\n", out); fputs("</ul></li>\n", out);
} }
@ -5153,7 +5161,9 @@ write_toc(FILE *out, /* I - Output file */
scut = find_public(scut, doc, "union"); scut = find_public(scut, doc, "union");
} }
if (!xml) if (xml)
fputs("</Subnodes></Node>\n", out);
else
fputs("</ul></li>\n", out); fputs("</ul></li>\n", out);
} }
@ -5198,7 +5208,9 @@ write_toc(FILE *out, /* I - Output file */
arg = find_public(arg, doc, "variable"); arg = find_public(arg, doc, "variable");
} }
if (!xml) if (xml)
fputs("</Subnodes></Node>\n", out);
else
fputs("</ul></li>\n", out); fputs("</ul></li>\n", out);
} }
@ -5248,13 +5260,6 @@ write_toc(FILE *out, /* I - Output file */
else else
fputs("</ul></li>\n", out); fputs("</ul></li>\n", out);
} }
/*
* That's it!
*/
if (!xml)
fputs("</ul>\n", out);
} }

Loading…
Cancel
Save