From d602943b9c4cc94d5809224ec8ecf45cdc8f559e Mon Sep 17 00:00:00 2001 From: John MacFarlane Date: Sun, 17 Mar 2019 12:49:27 -0700 Subject: Rename ends_with_blank_line with S_ prefix. As with other static functions. --- src/blocks.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/blocks.c') diff --git a/src/blocks.c b/src/blocks.c index e17cc15..95d3cff 100644 --- a/src/blocks.c +++ b/src/blocks.c @@ -215,13 +215,13 @@ static void remove_trailing_blank_lines(cmark_strbuf *ln) { // Check to see if a node ends with a blank line, descending // if needed into lists and sublists. -static bool ends_with_blank_line(cmark_node *node) { +static bool S_ends_with_blank_line(cmark_node *node) { if (S_last_line_checked(node)) { return(S_last_line_blank(node)); } else if ((S_type(node) == CMARK_NODE_LIST || S_type(node) == CMARK_NODE_ITEM) && node->last_child) { S_set_last_line_checked(node); - return(ends_with_blank_line(node->last_child)); + return(S_ends_with_blank_line(node->last_child)); } else { S_set_last_line_checked(node); return (S_last_line_blank(node)); @@ -322,7 +322,7 @@ static cmark_node *finalize(cmark_parser *parser, cmark_node *b) { // spaces between them: subitem = item->first_child; while (subitem) { - if (ends_with_blank_line(subitem) && (item->next || subitem->next)) { + if (S_ends_with_blank_line(subitem) && (item->next || subitem->next)) { b->as.list.tight = false; break; } -- cgit v1.2.3