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

Left Margins shrink from page to page #1949

Closed
BrianEmberling opened this issue Jul 19, 2021 · 2 comments
Closed

Left Margins shrink from page to page #1949

BrianEmberling opened this issue Jul 19, 2021 · 2 comments

Comments

@BrianEmberling
Copy link

I have a small test case where depending on the exact vertical alignment, the left margin starts to shrink on then 2nd and 3rd page. I'm using the default theme (only overriding page size to "letter").

asciidoctor-pdf -a pdf-stylesdir=./ -a pdf-style=bug bug.adoc -o out.pdf

I couldn't debug any further (not a software guy). At this point, nearly anything I delete or any addition/removal of lines can make the bug disappear. I'm running version 1.60 on windows 10.
(asciidoctor 2.0.15, prawn 2.4.0, ruby27)
bug.zip

Attached in a zip:
bug.adoc - the input file
bug-theme.yml - just sets "letter" size
out.pdf - example output showing shrinking margins
build.bat - run command in windows

@mojavelinux
Copy link
Member

mojavelinux commented Jul 21, 2021

This is the same issue as #1735 and is caused by prawnpdf/prawn#1121. This is fixed in the main branch (where I applied a workaround). I don't currently have any plans to backport this to 1.6.x.

@mojavelinux
Copy link
Member

For completeness, I will add a test case based on this particular example. The existing test case is for a slightly different scenario and I want to make sure this scenario is covered to avoid any regression.

mojavelinux added a commit that referenced this issue Jul 21, 2021
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