From 6685815c7fcb1f4908f54f10b62e6fde9c9d218d Mon Sep 17 00:00:00 2001 From: nick black Date: Tue, 14 Dec 2021 18:14:42 -0500 Subject: [PATCH] [tfman] proper structure paths #2457 --- src/man/structure.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/man/structure.c b/src/man/structure.c index 3ef82e34d..e65dc9d8b 100644 --- a/src/man/structure.c +++ b/src/man/structure.c @@ -111,6 +111,8 @@ int docstructure_add(docstructure* ds, const char* title, int line, if((addpath[z] = ds->curpath[z]) == UINT_MAX){ ds->curpath[z] = 0; addpath[z] = 0; + }else if(z == level){ + addpath[z] = ++ds->curpath[z]; } ++z; }