From 304344cf1f6c00a3a1e4b9266d2e7c5456045112 Mon Sep 17 00:00:00 2001 From: david parsons Date: Wed, 23 Mar 2022 16:10:58 -0700 Subject: [PATCH] I was a little too aggressive when stripping out the recursive uniquification (& redo the test case to reflect starting sequences at zero instead of 1 --- tests/toc.t | 4 ++-- toc.c | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/toc.t b/tests/toc.t index 7c15986..0d1ff40 100644 --- a/tests/toc.t +++ b/tests/toc.t @@ -105,12 +105,12 @@ try '-T -ftoc' 'uniquifying duplicate labels' \ # this' \ '

this

- +

this

' diff --git a/toc.c b/toc.c index 58f687e..a53c5d4 100644 --- a/toc.c +++ b/toc.c @@ -117,14 +117,12 @@ decollide(Paragraph *current, Cstring *name, int suffix) int seq = 0; char *sufp; -#if 0 /* first decollide all the children */ for ( content = current; content; content = content->next ) { if ( content->down ) decollide(content->down, name, suffix); } -#endif restart: for ( content = current; content; content = content->next ) {