diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-28 17:52:09 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-28 17:52:09 -0800 |
commit | 19a3a5ea4f73e8757b6d208f3be003bc2828e752 (patch) | |
tree | 9baf713277778e6812ae4a9b73425a18c1fe2d69 /src/xml.c | |
parent | d19558961c1b579ddb2f5c62f1b6a65be3324333 (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.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; |