summaryrefslogtreecommitdiff
path: root/src/utf8.c
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-06-16 13:18:31 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-06-16 13:18:31 -0700
commit9ae4975fc049de433ad8e2399c391d207208233a (patch)
tree930bb6f38b8d3bba16dc4ced81406a9271f81f54 /src/utf8.c
parent0c439ac3ab8c59a90277daad0c2ece5e937a6528 (diff)
astyle formatting changes.
Diffstat (limited to 'src/utf8.c')
-rw-r--r--src/utf8.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/utf8.c b/src/utf8.c
index a4449dd..f572042 100644
--- a/src/utf8.c
+++ b/src/utf8.c
@@ -134,14 +134,12 @@ void utf8proc_detab(cmark_strbuf *ob, const uint8_t *line, bufsize_t size)
break;
}
i += charlen;
- }
- else if (line[i] == '\0') {
+ } else if (line[i] == '\0') {
// ASCII NUL is technically valid but rejected
// for security reasons.
charlen = 1;
break;
- }
- else {
+ } else {
i++;
}