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

Height, width set to auto causes typeerror #728

Closed
hydric opened this Issue Nov 7, 2018 · 4 comments

Comments

2 participants
@hydric
Copy link

hydric commented Nov 7, 2018

In padding_height(self) and padding_width(self) in boxes.py the return values can't be added together when height and/or width is set to'auto'.

@liZe

This comment has been minimized.

Copy link
Member

liZe commented Nov 8, 2018

Hello,

Do you have the problem using the command-line interface, or did you try to use WeasyPrint as a library?

@hydric

This comment has been minimized.

Copy link
Author

hydric commented Nov 11, 2018

Using the below relevant code in a file and calling it from the command-line.
The url in question was "https://lagen.nu/1991:614".

    import weasyprint
    pdf_file = args.file
    pdf = weasyprint.HTML(args.url).write_pdf()
    file(pdf_file, 'w').write(pdf)
@liZe

This comment has been minimized.

Copy link
Member

liZe commented Nov 12, 2018

Thank you, I can reproduce. I'll try to find what's wrong.

@liZe liZe added crash bug labels Nov 12, 2018

@liZe liZe added this to the 44 milestone Nov 12, 2018

@liZe liZe removed this from the 44 milestone Dec 27, 2018

@liZe

This comment has been minimized.

Copy link
Member

liZe commented Mar 7, 2019

Minimal use case:

<div style="position: fixed">
  <div style="position: fixed"></div>
</div>
<div style="break-after: page"></div>
<div></div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.