Fix indexing for varlistent when not within a section
[exim-website.git] / script / gen
index 747c4481a951a9cbe7a20af200cc3cbe2df4969e..58e399e8477376457e87a800a2ade71881fa78d6 100755 (executable)
@@ -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);
          }
        }