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

Exhibit upload tool - TOC page numbering error #884

Open
RamiLorca opened this issue Sep 19, 2024 · 0 comments
Open

Exhibit upload tool - TOC page numbering error #884

RamiLorca opened this issue Sep 19, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@RamiLorca
Copy link

RamiLorca commented Sep 19, 2024

When using the exhibit upload tool to add multiple exhibits, the Table of Contents (TOC) displays wrong page numbers. Following the first exhibit, each subsequent exhibit page number shown in the TOC will be off by a higher number.

Example: A user uses the tool to upload three separate 1-page documents. In the final exhibit document, the TOC will say that Exhibit A starts on page 3, which is correct. However, it will then say that Exhibit B starts on page 6 (actual start is page 5) and Exhibit C on page 9 (actual start is page 7).

This issue is mostly likely being caused by the logic in the default docx template for the TOC, shown below:
Screenshot 2024-09-18 at 8 55 28 PM (2)

Replacing exhibit.start page + loop.index + table page length - 1 with exhibit.start page + 1 (shown below) seems to have resolved the issue for me when cover pages are included. However, this will need to be tested further.
Screenshot 2024-09-19 at 2 41 32 PM (2)

@RamiLorca RamiLorca added the bug Something isn't working label Sep 19, 2024
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

No branches or pull requests

1 participant