summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2014-12-14 14:08:53 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2014-12-14 14:08:53 -0800
commit9dd7a6510aa63506b4ea13b40f44b3094d8f637a (patch)
tree4cd917a91d628ab80a403ac9d022eea34697e837 /src
parent8a4d49f4571f3a49b298207c99b8578642fe5209 (diff)
man writer: use chunk literal in code blocks.
Diffstat (limited to 'src')
-rw-r--r--src/man.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/man.c b/src/man.c
index 31247cb..3f63d13 100644
--- a/src/man.c
+++ b/src/man.c
@@ -59,7 +59,6 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate)
switch(node->type) {
case CMARK_NODE_TEXT:
case CMARK_NODE_CODE:
- case CMARK_NODE_INLINE_HTML:
escape_man(man, node->as.literal.data,
node->as.literal.len);
break;
@@ -131,8 +130,8 @@ S_render_node(cmark_node *node, cmark_event_type ev_type, void *vstate)
case CMARK_NODE_CODE_BLOCK:
cr(man);
strbuf_puts(man, ".IP\n.nf\n\\f[C]\n");
- escape_man(man, node->string_content.ptr,
- node->string_content.size);
+ escape_man(man, node->as.literal.data,
+ node->as.literal.len);
cr(man);
strbuf_puts(man, "\\f[]\n.fi");
cr(man);