summaryrefslogtreecommitdiff
path: root/src/print.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-16 12:01:19 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-16 12:01:19 -0800
commit6e25c889cf33a6217a9b4cf37ea1a6361883901b (patch)
tree949a5482cf2df495107edf03d822fc5a05e1ae31 /src/print.c
parent06fcdb7592a6106daa52dfe4830373ed735e4053 (diff)
Added 'literal' field to 'code' struct.
In the last few commits we were using as.code.fenced and as.literal at the same time for NODE_CODE_BLOCK, which obviously led to problems.
Diffstat (limited to 'src/print.c')
-rw-r--r--src/print.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/print.c b/src/print.c
index a4654f2..c38271f 100644
--- a/src/print.c
+++ b/src/print.c
@@ -81,8 +81,8 @@ static void render_nodes(cmark_strbuf* buffer, cmark_node* node, int indent)
print_str(buffer, node->as.code.info.data,
node->as.code.info.len);
cmark_strbuf_putc(buffer, ' ');
- print_str(buffer, node->as.literal.data,
- node->as.literal.len);
+ print_str(buffer, node->as.code.literal.data,
+ node->as.code.literal.len);
cmark_strbuf_putc(buffer, '\n');
break;
case NODE_HTML: