mirror of
https://github.com/Orc/discount.git
synced 2026-09-25 04:10:00 +03:00
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:
+2
-2
@@ -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>'
|
||||
|
||||
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user