Skip to content
Snippets Groups Projects
Commit 12e689cd authored by Martin Stjernholm's avatar Martin Stjernholm
Browse files

Handle @section inside refdoc blocks.

Previously they were just silently ignored.
parent e2b653ad
No related branches found
No related tags found
No related merge requests found
......@@ -591,10 +591,16 @@ string parse_text(Node n, void|String.Buffer ret) {
m->href=c->value_of_node();
ret->add( sprintf("<a%{ %s='%s'%}>%s</a>",
(array)m, c->value_of_node()) );
break;
case "section":
// werror(c->html_of_node()+"\n");
// Found...
ret->add ("<h2>", quote (c->get_attributes()->title ||
// The following for bug compat.
c->get_attributes()->name),
"</h2>\n");
if (!equal (c->get_children()->get_any_name(), ({"text"})))
error ("Expected a single <text> element inside <section>.\n");
parse_text (c->get_children()[0], ret);
break;
case "ul":
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment