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

This commit is contained in:
david parsons
2022-03-23 16:10:58 -07:00
parent 343845b66d
commit 304344cf1f
2 changed files with 2 additions and 4 deletions
+2 -2
View File
@@ -105,12 +105,12 @@ try '-T -ftoc' 'uniquifying duplicate labels' \
# this' \
'<ul>
<li><a href="#this">this</a></li>
<li><a href="#this_1">this</a></li>
<li><a href="#this_0">this</a></li>
</ul>
<a name="this"></a>
<h1>this</h1>
<a name="this_1"></a>
<a name="this_0"></a>
<h1>this</h1>'
-2
View File
@@ -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 ) {