diff options
author | John MacFarlane <jgm@berkeley.edu> | 2016-07-15 08:32:26 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2016-07-15 08:32:26 -0700 |
commit | 446f8256e53eecccf10069b0bc7562eb4ff3fa3e (patch) | |
tree | f7e8ef7949ff3368abe45aa8c7d23fc35414a2e5 /src | |
parent | ddae0291dcc1561fcfb86d115ccd67cefff26a3f (diff) |
Reformatted.
Diffstat (limited to 'src')
-rw-r--r-- | src/blocks.c | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/src/blocks.c b/src/blocks.c index 5c04fc0..8e8c4c2 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -384,7 +384,7 @@ static void process_inlines(cmark_mem *mem, cmark_node *root, // data with the details. On failure, returns 0. static bufsize_t parse_list_marker(cmark_mem *mem, cmark_chunk *input, bufsize_t pos, bool interrupts_paragraph, - cmark_list **dataptr) { + cmark_list **dataptr) { unsigned char c; bufsize_t startpos; cmark_list *data; @@ -406,7 +406,7 @@ static bufsize_t parse_list_marker(cmark_mem *mem, cmark_chunk *input, i++; } if (peek_at(input, i) == '\n') { - return 0; + return 0; } } @@ -446,7 +446,7 @@ static bufsize_t parse_list_marker(cmark_mem *mem, cmark_chunk *input, i++; } if (S_is_line_end_char(peek_at(input, i))) { - return 0; + return 0; } } @@ -882,8 +882,8 @@ static void open_new_blocks(cmark_parser *parser, cmark_node **container, S_advance_offset(parser, input, parser->first_nonspace + matched - parser->offset, false); - *container = - add_child(parser, *container, CMARK_NODE_HEADING, heading_startpos + 1); + *container = add_child(parser, *container, CMARK_NODE_HEADING, + heading_startpos + 1); hashpos = cmark_chunk_strchr(input, '#', parser->first_nonspace); @@ -933,12 +933,10 @@ static void open_new_blocks(cmark_parser *parser, cmark_node **container, *container = add_child(parser, *container, CMARK_NODE_THEMATIC_BREAK, parser->first_nonspace + 1); S_advance_offset(parser, input, input->len - 1 - parser->offset, false); - } else if ((matched = parse_list_marker(parser->mem, input, - parser->first_nonspace, - (*container)->type == - CMARK_NODE_PARAGRAPH, - &data)) && - (!indented || cont_type == CMARK_NODE_LIST)) { + } else if ((matched = parse_list_marker( + parser->mem, input, parser->first_nonspace, + (*container)->type == CMARK_NODE_PARAGRAPH, &data)) && + (!indented || cont_type == CMARK_NODE_LIST)) { // Note that we can have new list items starting with >= 4 // spaces indent, as long as the list container is still open. |