From acac9428faa1c3193fb44b3fb0e2dd3cbdaa4ac9 Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sat, 22 Nov 2014 21:22:26 -0800 Subject: Renamed NODE_BQUOTE -> NODE_BLOCK_QUOTE. --- src/blocks.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/blocks.c') diff --git a/src/blocks.c b/src/blocks.c index 7def4c8..2a6cdd8 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -89,7 +89,7 @@ static bool is_blank(strbuf *s, int offset) static inline bool can_contain(cmark_node_type parent_type, cmark_node_type child_type) { return ( parent_type == NODE_DOCUMENT || - parent_type == NODE_BQUOTE || + parent_type == NODE_BLOCK_QUOTE || parent_type == NODE_LIST_ITEM || (parent_type == NODE_LIST && child_type == NODE_LIST_ITEM) ); } @@ -516,7 +516,7 @@ void cmark_process_line(cmark_doc_parser *parser, const char *buffer, indent = first_nonspace - offset; blank = peek_at(&input, first_nonspace) == '\n'; - if (container->type == NODE_BQUOTE) { + if (container->type == NODE_BLOCK_QUOTE) { matched = indent <= 3 && peek_at(&input, first_nonspace) == '>'; if (matched) { offset = first_nonspace + 1; @@ -620,7 +620,7 @@ void cmark_process_line(cmark_doc_parser *parser, const char *buffer, // optional following character if (peek_at(&input, offset) == ' ') offset++; - container = add_child(parser, container, NODE_BQUOTE, parser->line_number, offset + 1); + container = add_child(parser, container, NODE_BLOCK_QUOTE, parser->line_number, offset + 1); } else if ((matched = scan_atx_header_start(&input, first_nonspace))) { @@ -731,7 +731,7 @@ void cmark_process_line(cmark_doc_parser *parser, const char *buffer, // lists or breaking out of lists. we also don't set last_line_blank // on an empty list item. container->last_line_blank = (blank && - container->type != NODE_BQUOTE && + container->type != NODE_BLOCK_QUOTE && container->type != NODE_SETEXT_HEADER && container->type != NODE_FENCED_CODE && !(container->type == NODE_LIST_ITEM && -- cgit v1.2.3