diff options
author | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2017-08-03 18:55:46 +0700 |
---|---|---|
committer | Nguyễn Thái Ngọc Duy <pclouds@gmail.com> | 2017-08-03 18:59:32 +0700 |
commit | 1a4a339d49c17768c2c650bb8f8644c556603978 (patch) | |
tree | 15359c03f7bc7929dc36c893471259c7d5a5625e /src/inlines.c | |
parent | 350d145c84f1624cdbf7560e6780bc2c73d2843a (diff) |
Reformat source code with 'make format'
Diffstat (limited to 'src/inlines.c')
-rw-r--r-- | src/inlines.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/inlines.c b/src/inlines.c index f223baf..6bf82e2 100644 --- a/src/inlines.c +++ b/src/inlines.c @@ -615,7 +615,7 @@ static delimiter *S_insert_emph(subject *subj, delimiter *opener, cmark_node *tmp, *tmpnext, *emph; // calculate the actual number of characters used from this closer - use_delims = (closer_num_chars >= 2 && opener_num_chars >=2) ? 2 : 1; + use_delims = (closer_num_chars >= 2 && opener_num_chars >= 2) ? 2 : 1; // remove used characters from associated inlines. opener_num_chars -= use_delims; @@ -821,7 +821,8 @@ noMatch: return 0; } -static bufsize_t manual_scan_link_url_2(cmark_chunk *input, bufsize_t offset, cmark_chunk *output) { +static bufsize_t manual_scan_link_url_2(cmark_chunk *input, bufsize_t offset, + cmark_chunk *output) { bufsize_t i = offset; size_t nb_p = 0; @@ -854,7 +855,8 @@ static bufsize_t manual_scan_link_url_2(cmark_chunk *input, bufsize_t offset, cm return i - offset; } -static bufsize_t manual_scan_link_url(cmark_chunk *input, bufsize_t offset, cmark_chunk *output) { +static bufsize_t manual_scan_link_url(cmark_chunk *input, bufsize_t offset, + cmark_chunk *output) { bufsize_t i = offset; if (i < input->len && input->data[i] == '<') { @@ -924,7 +926,8 @@ static cmark_node *handle_close_bracket(subject *subj) { // First, look for an inline link. if (peek_char(subj) == '(' && ((sps = scan_spacechars(&subj->input, subj->pos + 1)) > -1) && - ((n = manual_scan_link_url(&subj->input, subj->pos + 1 + sps, &url_chunk)) > -1)) { + ((n = manual_scan_link_url(&subj->input, subj->pos + 1 + sps, + &url_chunk)) > -1)) { // try to parse an explicit link: endurl = subj->pos + 1 + sps + n; |