-
-
Notifications
You must be signed in to change notification settings - Fork 696
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
Assertion error with <th> tags in v54.X #1586
Comments
Hello, This bug really looks like #1538. Did you try the latest version of WeasyPrint (54.2)? |
Sorry, I didn’t read your comment carefully. This bug is probably different, we have to check this. |
Yes, I tried it with 54.1 and 54.2 and the problem persists. Let me know if you'd like be to add the css file that's causing it (it's kinda large haha). |
The bug was already fixed and tested in Before 54.3 is released, you can apply the patch, or try the Thanks for the bug report! |
Awesome thanks @liZe! |
Until weasyprint `54.3` version is released, `th` elements cannot be used. See: <Kozea/WeasyPrint#1586>
Hi,
I have a django project using weasyprint and when I upgraded from version 53.4 to 54.X I recieve an assertion error. I've determined it only occurs when using
<th>
tags in the templates. Specifically, it's caused when the value ofalign
is equal to-webkit-match-parent
within the functiontext_align
located inweasyprint/layout/inline.py
.I was able to prevent the exception occuring by changing all
<th>
tags to<td>
but believe it may be similar to #1538 as I am also using bootstrap v4.5.3Context:
Python Code:
Traceback:
The text was updated successfully, but these errors were encountered: