Welcome to little lamb

Code » qmdoc » commit 6be99c8

Fix not setting doc.flags for each file

author Olivier Brunel
2023-01-01 21:37:19 UTC
committer Olivier Brunel
2023-01-04 15:09:27 UTC
parent eb64d6e4902b22085df591ba4f4435ac6202c20f

Fix not setting doc.flags for each file

This could lead to HAS_TITLE being always set once a file with title
has been processed, leading to HTML errors

main.c +2 -0

diff --git a/main.c b/main.c
index bedbd8a..217f45e 100644
--- a/main.c
+++ b/main.c
@@ -916,6 +916,8 @@ convert_page(struct ctx *ctx, int fddest)
         stralloc_catb(&ctx->sa, "\n", 1);
     }
 
+    ctx->doc.flags = 0;
+
     const MD_PARSER parser = {
         .flags = MD_FLAG_COLLAPSEWHITESPACE | MD_FLAG_PERMISSIVEAUTOLINKS
             | MD_FLAG_NOHTMLBLOCKS | MD_FLAG_STRIKETHROUGH | MD_FLAG_UNDERLINE