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

TypeError: unsupported operand type(s) for +: 'float' and 'str' #260

Closed
liZe opened this issue Jul 6, 2015 · 2 comments
Closed

TypeError: unsupported operand type(s) for +: 'float' and 'str' #260

liZe opened this issue Jul 6, 2015 · 2 comments
Labels
bug Existing features not working as expected crash Problems preventing documents from being rendered

Comments

@liZe
Copy link
Member

liZe commented Jul 6, 2015

weasyprint http://foundation.zurb.com/docs/ out.pdf

@liZe liZe added crash Problems preventing documents from being rendered bug Existing features not working as expected labels Jul 6, 2015
@liZe
Copy link
Member Author

liZe commented Jul 6, 2015

I'm sure that WeasyPrint was working when #225 was closed, so we can assume that the CSS has changed since this moment and caused this bug. Version 01a5ce7 doesn't work either, so this bug is old and not introduced in latest features.

@liZe
Copy link
Member Author

liZe commented Jul 6, 2015

Minimum test case:

<body style="display: inline-block; margin-bottom: auto">

I'm sometimes sad to realize that the 9000+ tests of the W3 CSS test suite don't crash, and that a so stupid and simple example like this fails.

@liZe liZe closed this as completed in 81a035c Jan 17, 2016
jsonn pushed a commit to jsonn/pkgsrc that referenced this issue Feb 19, 2016
Version 0.26
------------

Released on 2016-01-29.

New features:

* Support the `empty-cells` attribute.
* Respect table, column and cell widths.

Bug fixes:

* `#172: <https://github.com/Kozea/WeasyPrint/issues/172>`_:
  Unable to set table column width on tables td's.
* `#151: <https://github.com/Kozea/WeasyPrint/issues/151>`_:
  Table background colour bleeds beyond table cell boundaries.
* `#260: <https://github.com/Kozea/WeasyPrint/issues/260>`_:
  TypeError: unsupported operand type(s) for +: 'float' and 'str'.
* `#288: <https://github.com/Kozea/WeasyPrint/issues/288>`_:
  Unwanted line-breaks in bold text.
* `#286: <https://github.com/Kozea/WeasyPrint/issues/286>`_:
  AttributeError: 'Namespace' object has no attribute 'attachments'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Existing features not working as expected crash Problems preventing documents from being rendered
Projects
None yet
Development

No branches or pull requests

1 participant