aboutsummaryrefslogtreecommitdiff
path: root/Converter
diff options
context:
space:
mode:
authordx <aryadevchavali1@gmail.com>2020-05-06 03:18:19 +0100
committerdx <aryadevchavali1@gmail.com>2020-05-06 03:18:19 +0100
commitacb0e6b2bf944c096eee6dd5c3cf54df0e4b7b6e (patch)
tree55490e4c6bf392d439e0025e3ee034692a1f99e5 /Converter
parentf0001c20f1e5dd4404f317575183a6df5dc7a5f3 (diff)
downloadmdhtml-acb0e6b2bf944c096eee6dd5c3cf54df0e4b7b6e.tar.gz
mdhtml-acb0e6b2bf944c096eee6dd5c3cf54df0e4b7b6e.tar.bz2
mdhtml-acb0e6b2bf944c096eee6dd5c3cf54df0e4b7b6e.zip
~clang format shenanigans
To make clang format happy, I put continue on the for loop so that it will have at least one statement.
Diffstat (limited to 'Converter')
-rw-r--r--Converter/src/main.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/Converter/src/main.c b/Converter/src/main.c
index f76a542..9d0c61f 100644
--- a/Converter/src/main.c
+++ b/Converter/src/main.c
@@ -15,7 +15,7 @@ string compile_line(string line, size_t size_of_line)
// Get the level of header (h1, h2, etc)
int depth;
- for (depth = 1; line[depth] == '#'; ++depth);
+ for (depth = 1; line[depth] == '#'; ++depth) continue;
size_of_content = size_of_line - depth; // remove hashes
// Generate the header tags based on depth
@@ -34,7 +34,8 @@ string compile_line(string line, size_t size_of_line)
// write the rest of the line to the compiled_line
strncpy(compiled_line + tag_size, line + depth, size_of_line);
// write the end tags
- strncpy(compiled_line + size_of_content + tag_size, close_tag, close_tag_size);
+ strncpy(compiled_line + size_of_content + tag_size, close_tag,
+ close_tag_size);
}
else