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

PDF export bug: ordered lists in textboxes #1228

Open
tw77 opened this issue Jun 4, 2024 · 2 comments
Open

PDF export bug: ordered lists in textboxes #1228

tw77 opened this issue Jun 4, 2024 · 2 comments

Comments

@tw77
Copy link
Contributor

tw77 commented Jun 4, 2024

Description

In a book set to McLuhan, list items in an ordered list within a textbox appear correctly in the webbook, but incorrectly in PDF exports.

When we export a PDF with an ordered list within a textbox, list items after the first one have their corresponding number placed on one line, followed by a dot on a second line, followed by their content on that second line.

Screenshot 2024-06-04 at 12 40 05 PM

In an ordered list with nested items, only the top-level list items are affected:

Screenshot 2024-06-04 at 12 45 00 PM

This only occurs in PDF exports and does not occur with ordered lists outside of textboxes.

PDF exports of books set to Malala don't appear to have this issue.

The issue is also not apparent from the XHTML source, only the exported PDF file.

Steps to Reproduce

  1. Set a book to McLuhan.
  2. Create a textbox in a chapter.
  3. In the textbox, add an <ol> with multiple items.
  4. Save the chapter.
  5. View the chapter in the webbook. It should display normally.
  6. Export the chapter in a PDF.

Expected behavior: The list displays correctly in the PDF, as it does in the webbook chapter.

Actual behavior: The numbering of list items is formatted strangely from the second (top-level) list item on.

@MichSpieler
Copy link

tried to reproduce it with a book from scratch: https://university.pressbooks.pub/sandboxjune2024/
I was unable to reproduce the issue.

@tw77
Copy link
Contributor Author

tw77 commented Jun 5, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants