Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Wraps the last word #2505

Description

@Hirurg103

After we upgraded from wkhtmltopdf v0.9.9.3 to wkhtmltopdf v0.12.2.1 we met the issue with word wrapping in html blocks which have the following css rules:

<style>
  display: inline-block;
  font-family: Arial;
</style>

For example, consider the following html

my_lovely_site.html

<html>
<head>
  <style>
    body {
      display: inline-block;
      font-family: Arial;
    }
  </style>
</head>
<body>
  My Lovely Site
</body>
</html>

when I generate PDF from it with wkhtmltopdf v0.12.2.1, then I see that content is broken in two lines in the generated PDF:
screen shot 2015-08-05 at 6 20 00 pm

but the text is not broken when I open html page in the browser. Also the line is not broken when I generate PDF with wkhtmltopdf v0.9.9.3.
screen shot 2015-08-05 at 6 31 04 pm

When we remove font-falmily: Arial then wkhtmltopdf v.0.12.2.1 doesn't break the text too.

How can we deal with this issue? Thanks

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions