write_element() was writing to stdout.

pull/193/head
Michael R Sweet 17 years ago
parent fe77bb9f69
commit 29ab62983c
  1. 9
      doc/reference.html
  2. 6
      mxmldoc.c

@ -64,6 +64,8 @@ div.contents ul.contents {
} }
.members { .members {
} }
.method {
}
.parameters { .parameters {
} }
.returnvalue { .returnvalue {
@ -123,7 +125,12 @@ div.body dt {
div.body dd { div.body dd {
margin-bottom: 0.5em; margin-bottom: 0.5em;
} }
h1.title, h2.title, h3.title { h1.title {
}
h2.title {
border-bottom: solid 2px black;
}
h3.title {
border-bottom: solid 2px black; border-bottom: solid 2px black;
} }
--></style> --></style>

@ -2667,11 +2667,11 @@ write_element(FILE *out, /* I - Output file */
mxmlFindElement(doc, doc, "union", "name", node->value.text.string, mxmlFindElement(doc, doc, "union", "name", node->value.text.string,
MXML_DESCEND))) MXML_DESCEND)))
{ {
printf("<a href=\"#"); fputs("<a href=\"#", out);
write_string(out, node->value.text.string, mode); write_string(out, node->value.text.string, mode);
printf("\">"); fputs("\">", out);
write_string(out, node->value.text.string, mode); write_string(out, node->value.text.string, mode);
printf("</a>"); fputs("</a>", out);
} }
else else
write_string(out, node->value.text.string, mode); write_string(out, node->value.text.string, mode);

Loading…
Cancel
Save