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

twelvepoint Style Sheet has odd formatting on numebred lists #1174

Open
abenson opened this issue Jul 27, 2023 · 1 comment
Open

twelvepoint Style Sheet has odd formatting on numebred lists #1174

abenson opened this issue Jul 27, 2023 · 1 comment

Comments

@abenson
Copy link

abenson commented Jul 27, 2023

Description of problem

When adding the twelvepoint stylesheet, numbered lists render the period just below the number instead of next to it.

What is the expected output?

For example with the default 10pt:

$ rst2pdf test.rst

image

What do you see instead?

$ rst2pdf -s twelvepoint test.rst

image

Versions

python -V

Python 3.11.4

pip freeze | grep rst2pdf

(I'm not using pip, I packaged rst2pdf for Void and I'm looking to submit it)

rst2pdf-0.100

pip freeze | grep reportlab

python3-reportlab-3.6.11

Which operating system are you using?

Void Linux

@akrabat
Copy link
Member

akrabat commented Aug 4, 2023

This is because lists are actually rendered as ReportLab tables being the scenes and the width for the first column isn't wide enough for 12pt text. The quick fix is to add a new item-list style to the twelvepoint style sheet with a wider colWidths value for the first column.

The "proper" fix is to update lists in rst2pdf to use ReportLab's ListFlowable() & ListItem().

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

No branches or pull requests

2 participants