Fix indexing for varlistent when not within a section
authorJeremy Harris <jgh@wizmail.org>
Thu, 28 Jul 2022 23:12:52 +0000 (00:12 +0100)
committerJeremy Harris <jgh@wizmail.org>
Thu, 28 Jul 2022 23:13:34 +0000 (00:13 +0100)
script/gen

index 747c4481a951a9cbe7a20af200cc3cbe2df4969e..58e399e8477376457e87a800a2ade71881fa78d6 100755 (executable)
@@ -418,7 +418,7 @@ sub build_indexes {
            }
 
            $xref->{$anchorname}{'chapter_title'} = $chapter_title;
            }
 
            $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);
          }
        }
            $xref->{$anchorname}{'section_title'} = $sec_title if ($sec_title);
          }
        }