From acb0e6b2bf944c096eee6dd5c3cf54df0e4b7b6e Mon Sep 17 00:00:00 2001 From: dx Date: Wed, 6 May 2020 03:18:19 +0100 Subject: ~clang format shenanigans To make clang format happy, I put continue on the for loop so that it will have at least one statement. --- Converter/src/main.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Converter/src/main.c') 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 -- cgit v1.2.3-13-gbd6f