From b50a2cd618802543e01f46bffb4b19d5bd5b4ba6 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 28 Dec 2014 17:00:15 -0800 Subject: Revamped xml writer and dtd to use lowercase element names. --- src/xml.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/xml.c b/src/xml.c index 86fb6d4..1ec1d7d 100644 --- a/src/xml.c +++ b/src/xml.c @@ -45,7 +45,8 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate) if (entering) { indent(state); - cmark_strbuf_printf(xml, "<%s", cmark_node_type_string(node)); + cmark_strbuf_printf(xml, "<%s", + cmark_node_get_type_string(node)); if (node->start_line != 0) { cmark_strbuf_printf(xml, " sourcepos=\"%d:%d-%d\"", @@ -65,7 +66,8 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate) escape_xml(xml, node->as.literal.data, node->as.literal.len); cmark_strbuf_puts(xml, "as.code.literal.data, node->as.code.literal.len); cmark_strbuf_puts(xml, "indent -= 2; } indent(state); - cmark_strbuf_printf(xml, "