From 8160fdcca002060881dbc5c584b46e06323bca3d Mon Sep 17 00:00:00 2001 From: Jeremy Harris Date: Fri, 29 Jul 2022 00:12:52 +0100 Subject: [PATCH] Fix indexing for varlistent when not within a section --- script/gen | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/gen b/script/gen index 747c448..58e399e 100755 --- a/script/gen +++ b/script/gen @@ -418,7 +418,7 @@ sub build_indexes { } $xref->{$anchorname}{'chapter_title'} = $chapter_title; - $xref->{$anchorname}{'section_id'} = $sec_id if ($sec_id); + $xref->{$anchorname}{'section_id'} = $anchorname; $xref->{$anchorname}{'section_title'} = $sec_title if ($sec_title); } } -- 2.30.2