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

Got u'Printed-' between two lines. Expected nothing or a preserved line break #417

Closed
kingshukb opened this Issue Jan 31, 2017 · 5 comments

Comments

Projects
None yet
3 participants
@kingshukb

kingshukb commented Jan 31, 2017

This issue is similar, to #389, however i am
getting this error while trying to create pdf from html:

from weasyprint import HTML, CSS
HTML(string=output).write_pdf(pdf_file_name, stylesheets=[CSS(string=css_string)])

I have attached the stack-trace in detail:
Weasy_error.txt

I am using :
WeasyPrint==0.34

Thank you for providing WeasyPrint!

@liZe

This comment has been minimized.

Show comment
Hide comment
@liZe

liZe Jan 31, 2017

Member

Thank you for providing WeasyPrint!

Thank you for reporting 😉!

Could you please provide your HTML and CSS samples?

Member

liZe commented Jan 31, 2017

Thank you for providing WeasyPrint!

Thank you for reporting 😉!

Could you please provide your HTML and CSS samples?

@liZe

This comment has been minimized.

Show comment
Hide comment
@liZe

liZe Feb 2, 2017

Member

I think that it's been fixed by #410, could you please try the current master branch?

Member

liZe commented Feb 2, 2017

I think that it's been fixed by #410, could you please try the current master branch?

@liZe

This comment has been minimized.

Show comment
Hide comment
@liZe

liZe Feb 6, 2017

Member

No news is good news, I'm pretty sure that it's fixed now.

Member

liZe commented Feb 6, 2017

No news is good news, I'm pretty sure that it's fixed now.

@liZe liZe closed this Feb 6, 2017

@liZe liZe added this to the 0.34 milestone Feb 6, 2017

@jsatt

This comment has been minimized.

Show comment
Hide comment
@jsatt

jsatt May 15, 2017

I don't think this is actually fixed. I'm getting a similar error on our production servers.

weasyprint 0.36

weasyprint.HTML(string=<<string in attached file>>).write_pdf('/tmp/raw_test.pdf')

html and css used
traceback

Edit: For others running into this this issue, I'm currently applying white-space: nowrap to the table cell involved to as a forceful workaround, but it's not intended to be permanent.

jsatt commented May 15, 2017

I don't think this is actually fixed. I'm getting a similar error on our production servers.

weasyprint 0.36

weasyprint.HTML(string=<<string in attached file>>).write_pdf('/tmp/raw_test.pdf')

html and css used
traceback

Edit: For others running into this this issue, I'm currently applying white-space: nowrap to the table cell involved to as a forceful workaround, but it's not intended to be permanent.

@liZe liZe reopened this May 15, 2017

@liZe liZe modified the milestones: v0.37, 0.34 May 15, 2017

@liZe liZe self-assigned this Jun 3, 2017

@liZe

This comment has been minimized.

Show comment
Hide comment
@liZe

liZe Jun 3, 2017

Member

It's now fixed (duplicate of #449).

Member

liZe commented Jun 3, 2017

It's now fixed (duplicate of #449).

@liZe liZe closed this Jun 8, 2017

netbsd-srcmastr pushed a commit to NetBSD/pkgsrc that referenced this issue Aug 1, 2017

kleink
Update py-weasyprint to 0.39.
Version 0.39
------------

Released on 2017-06-24.

Bug fixes:

* Fix the use of WeasyPrint's URL fetcher with CairoSVG.


Version 0.38
------------

Released on 2017-06-16.

Bug fixes:

* `#477 <https://github.com/Kozea/WeasyPrint/issues/477>`_:
  Don't crash on font-face's src attributes with local functions.


Version 0.37
------------

Released on 2017-06-15.

WeasyPrint now depends on tinycss2 instead of tinycss.

New features:

* `#437 <https://github.com/Kozea/WeasyPrint/issues/437>`_:
  Support local links in generated PDFs.

Bug fixes:

* `#412 <https://github.com/Kozea/WeasyPrint/issues/412>`_:
  Use a NullHandler log handler when WeasyPrint is used as a library.
* `#417 <https://github.com/Kozea/WeasyPrint/issues/417>`_,
  `#472 <https://github.com/Kozea/WeasyPrint/issues/472>`_:
  Don't crash on some line breaks.
* `#327 <https://github.com/Kozea/WeasyPrint/issues/327>`_:
  Don't crash with replaced elements with height set in percentages.
* `#467 <https://github.com/Kozea/WeasyPrint/issues/467>`_:
  Remove incorrect line breaks.
* `#446 <https://github.com/Kozea/WeasyPrint/pull/446>`_:
  Let the logging module do the string interpolation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment