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

Wide monster stat block error in pdf print #750

Closed
SzegaX opened this issue Sep 12, 2018 · 6 comments
Closed

Wide monster stat block error in pdf print #750

SzegaX opened this issue Sep 12, 2018 · 6 comments

Comments

@SzegaX
Copy link

SzegaX commented Sep 12, 2018

Description

The wide monster stat block block displays properly while editing, but when exporting to pdf (with the latest Chrome), the row describing creature type and the divider below it are shifted to the top of the second column.
I have two wide monster stat blocks in my document, on the same page. One of them displays this error, while the other does not.

Share Link : http://homebrewery.naturalcrit.com/share/SJZNxL_UdX

@calculuschild
Copy link
Member

Yep, there is some weird stuff going on in this document. Leave it there for us and I will keep looking into it.

Thanks for the report!

@KindredWolf78
Copy link

I'm having a similar issue with the wide monster block not rendering correctly when saved as PDF.
Page 3 of the document is all one single monster block. The bottom end renders fine for web viewing, but saving as PDF causes the bottom to "drop out" off the end of the page.

https://homebrewery.naturalcrit.com/share/BkPuppetf

@Feliks878
Copy link

I am having an identical issue, and this post from almost a year ago is the only place I can find describing a similar problem.

I was able to open the file on my wife's computer in the same browser (Chrome) and print it to PDF - in that case, it came out as expected, without the error.

@Gazook89
Copy link
Collaborator

The share links are nice, but just in case they go away, here are some images to illustrate issue from SzegaX's brew. From Chrome on macOS:

Print page, legacy:

image

Print Preview (Chrome printer), legacy

image

*note the thin red strip at top of second column

Print page, v3:

image

Print Preview (Chrome printer), v3

image

Note, the v3 version does not have a discrepancy between what is previewing and what is shown in print preview, but regardless I don't think it should split across columns? I tried reducing some of the left column text by one sentence to get the <hr> entirely on the left and by using \column in a few spots, to see if it would split into the right column, and didn't see any issue.


So I think for legacy this may still be a rare problem.

For v3, I suggest adding break-inside:avoid; to .monster hr if you want to prevent it from splitting across columns.

@calculuschild
Copy link
Member

calculuschild commented Dec 24, 2021

@Gazook89 Do you still have brews for these? I don't see this issue anymore in the original posted link. In either case I don't think break-inside would do anything to HR elements since they aren't containers.

If anything this is related to the borders of note boxes getting split across columns, which is a bug in Google. #1813

@calculuschild
Copy link
Member

It's been a long time since I have been able to reproduce this issue. I'm assuming Chrome has since fixed something on their end.

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

5 participants