summaryrefslogtreecommitdiff
path: root/src/xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml.c')
-rw-r--r--src/xml.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xml.c b/src/xml.c
index 1ec1d7d..2cfd800 100644
--- a/src/xml.c
+++ b/src/xml.c
@@ -49,10 +49,11 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate)
cmark_node_get_type_string(node));
if (node->start_line != 0) {
- cmark_strbuf_printf(xml, " sourcepos=\"%d:%d-%d\"",
+ cmark_strbuf_printf(xml, " sourcepos=\"%d:%d-%d:%d\"",
node->start_line,
node->start_column,
- node->end_line);
+ node->end_line,
+ node->end_column);
}
literal = false;