summaryrefslogtreecommitdiff
path: root/src/xml.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-28 17:52:09 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-28 17:52:09 -0800
commit19a3a5ea4f73e8757b6d208f3be003bc2828e752 (patch)
tree9baf713277778e6812ae4a9b73425a18c1fe2d69 /src/xml.c
parentd19558961c1b579ddb2f5c62f1b6a65be3324333 (diff)
Added end_column to cmark_node struct.
API exports cmark_node_get_column. XML writer indicates start and end line and column for block-level nodes.
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;