Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: avoid extra ToC rerun warnings when the ToC hasn't changed #26

Merged
merged 1 commit into from
Mar 25, 2023

Conversation

Omikhleia
Copy link
Owner

@Omikhleia Omikhleia commented Mar 19, 2023

Stripping positions from ToC entries avoids a mere text change that would not affect the ToC (same title, same page, only some inner character position changed) to be seen as a difference.

Implemented as a resilient "hack", but see also SILE sile-typesetter/sile#1732 for the more general context.

(The "problem" occurs when some ToC entries contain commands, e.g. an emphasis etc.)

@Omikhleia Omikhleia added the bug Something isn't working label Mar 19, 2023
@Omikhleia Omikhleia added this to the 2.0.1 milestone Mar 19, 2023
@Omikhleia Omikhleia self-assigned this Mar 19, 2023
Stripping positions from ToC entries avoid a mere text change
that would not affect the ToC (same title, same page, only some
inner character position changed) to be seen as a difference.
@Omikhleia Omikhleia force-pushed the avoid-extra-toc-rerun-warning branch from 97cd1df to 8a31594 Compare March 20, 2023 00:26
@Omikhleia Omikhleia merged commit ec36878 into main Mar 25, 2023
@Omikhleia Omikhleia deleted the avoid-extra-toc-rerun-warning branch March 25, 2023 20:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant