Skip to content

Display hyphen when breaking words #403

@sbrunecker

Description

@sbrunecker

I need to generate documents with German strings that tend to be quite long. Before generating the html I separate words into syllables and add soft hyphens.

Consider the following example:

<table class="table table-bordered">
    <thead>
    <tr>
        <th>Spalte 1</th>
        <th>Spalte 2</th>
        <th>Spalte 3</th>
        <th>Spalte 4</th>
        <th>Spalte 5</th>

    </tr>
    </thead>
    <tbody>

    <tr>
        <td>Haft&shy;pflicht&shy;ver&shy;si&shy;che&shy;rung</td>
        <td>Bun­des­aus­bil­dungs­för­de­rungs­ge­setz</td>
        <td>Gleich­ge­wichts­dich­te­gra­di­en­ten­zen­tri­fu­ga­tion</td>
        <td>Hähn­chen­mast</td>
        <td>Er­trags­scha­den­ver­si­che­rung Mast­ge­flü­gel</td>
    </tr>
    </tbody>
</table>

In Chrome, a hyphen is displayed when printing this example:

image

When generating with openhtmltopdf, no hyphen is displayed:

image

How can I get hyphens as in Chrome?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions