Skip to content

Commit

Permalink
Rename cmark_is_block -> S_is_block.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Aug 29, 2024
1 parent 15a7db2 commit ef26b84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ void cmark_render_code_point(cmark_renderer *renderer, uint32_t c) {
renderer->column += 1;
}

static inline int cmark_is_block(cmark_node *node) {
static inline int S_is_block(cmark_node *node) {
return node->type >= CMARK_NODE_FIRST_BLOCK && node->type <= CMARK_NODE_LAST_BLOCK;
}

Expand Down Expand Up @@ -183,7 +183,7 @@ char *cmark_render(cmark_node *root, int options, int width,
}

// If the root node is a block type (i.e. not inline), ensure there's a final newline:
if (cmark_is_block(root)) {
if (S_is_block(root)) {
if (renderer.buffer->size == 0 || renderer.buffer->ptr[renderer.buffer->size - 1] != '\n') {
cmark_strbuf_putc(renderer.buffer, '\n');
}
Expand Down

0 comments on commit ef26b84

Please sign in to comment.