summaryrefslogtreecommitdiff
path: root/src/commonmark.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-07-14 13:18:25 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-07-14 13:18:25 -0700
commitaa052f8efa0480a6d1da7cfe1b6083e47c095ccd (patch)
tree7e65fe5c3bab6003a220f2f4b94f8e9f5b73ed12 /src/commonmark.c
parent76fb4d57b9e941870c72f86833648bb5262be737 (diff)
astyle reformatting.
Diffstat (limited to 'src/commonmark.c')
-rw-r--r--src/commonmark.c44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/commonmark.c b/src/commonmark.c
index 60565d2..0f4c2bc 100644
--- a/src/commonmark.c
+++ b/src/commonmark.c
@@ -21,28 +21,28 @@
// Functions to convert cmark_nodes to commonmark strings.
static inline void outc(cmark_renderer *renderer,
- cmark_escaping escape,
- int32_t c,
- unsigned char nextc)
+ cmark_escaping escape,
+ int32_t c,
+ unsigned char nextc)
{
bool needs_escaping = false;
needs_escaping =
- escape != LITERAL &&
- ((escape == NORMAL &&
- (c == '*' || c == '_' || c == '[' || c == ']' || c == '#' ||
- c == '<' || c == '>' || c == '\\' || c == '`' || c == '!' ||
- (c == '&' && isalpha(nextc)) ||
- (c == '!' && nextc == '[') ||
- (renderer->begin_line &&
- (c == '-' || c == '+' || c == '=')) ||
- ((c == '.' || c == ')') &&
- isdigit(renderer->buffer->ptr[renderer->buffer->size - 1])))) ||
- (escape == URL &&
- (c == '`' || c == '<' || c == '>' || isspace(c) ||
- c == '\\' || c == ')' || c == '(')) ||
- (escape == TITLE &&
- (c == '`' || c == '<' || c == '>' || c == '"' ||
- c == '\\')));
+ escape != LITERAL &&
+ ((escape == NORMAL &&
+ (c == '*' || c == '_' || c == '[' || c == ']' || c == '#' ||
+ c == '<' || c == '>' || c == '\\' || c == '`' || c == '!' ||
+ (c == '&' && isalpha(nextc)) ||
+ (c == '!' && nextc == '[') ||
+ (renderer->begin_line &&
+ (c == '-' || c == '+' || c == '=')) ||
+ ((c == '.' || c == ')') &&
+ isdigit(renderer->buffer->ptr[renderer->buffer->size - 1])))) ||
+ (escape == URL &&
+ (c == '`' || c == '<' || c == '>' || isspace(c) ||
+ c == '\\' || c == ')' || c == '(')) ||
+ (escape == TITLE &&
+ (c == '`' || c == '<' || c == '>' || c == '"' ||
+ c == '\\')));
if (needs_escaping) {
if (isspace(c)) {
@@ -159,9 +159,9 @@ get_containing_block(cmark_node *node)
static int
S_render_node(cmark_renderer *renderer,
- cmark_node *node,
- cmark_event_type ev_type,
- int options)
+ cmark_node *node,
+ cmark_event_type ev_type,
+ int options)
{
cmark_node *tmp;
int list_number;