diff options
author | John MacFarlane <jgm@berkeley.edu> | 2019-03-17 12:49:27 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2019-03-17 12:49:27 -0700 |
commit | d602943b9c4cc94d5809224ec8ecf45cdc8f559e (patch) | |
tree | 93179b41ae0ff1d6b0e72e91e6bd9da5ccdf553f | |
parent | e5a65e02bef6856e4ee0c2f928e3a41d4d2e18de (diff) |
Rename ends_with_blank_line with S_ prefix.
As with other static functions.
-rw-r--r-- | src/blocks.c | 6 |
1 files changed, 3 insertions, 3 deletions
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; } |