Skip to content

Indexer lists the same page multiple times for a given repeated entry #2314

@Omikhleia

Description

@Omikhleia

Input (SILE 0.15.13)

\begin{document}
\use[module=packages.indexer]

A rabbit\indexentry[label=rabbit] and a hare\indexentry[label=rabbit].

\printindex
\end{document}

Expected
rabbit . . . . . . . . 1

Observed
rabbit . . . . . . . 1, 1

Analysis
Doh, my bad...
Two small coding mistakes on the very same line. Was I tired when I did break that? 😵‍💫 But how did it ever work in my final tests? Bah. I'll push a one-liner PR with the fix 🤣

Metadata

Metadata

Assignees

Labels

modules:packagesIssue relates to core or 3rd party packages

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions