Missing text lines in a book
Let there be this paragraph at the bottom of a page. Let there be hyphenation as well. Notice the lang="es"
to instruct the browser to apply the hyphenation rules for Spanish:
<p lang="es">
This is a long paragraph with several lines. This is the second
line. Punto de la vía podrían hallarlo. Cuando el juez llegó mandó
el levantamiento del cadáver y en la toma de declaración el ferroviario
atestiguó haber sorprendido al hombre rodando por la vía poco
después de.
</p>
Let there be this simple stylesheet:
@page {
size: 142mm 220mm;
margin: 22mm;
font-family: 'EB Garamond', serif;
font-size: 11pt;
line-height: 1.35;
hyphens: auto;
}
main p {
margin: 0;
text-indent: .5cm;
}
The paginated output is missing a line in the text. Both in the browser preview and the generated PDF.
Browser preview | PDF preview |
---|---|
Notice how the page breaks after mandó
, which seems correct, but the next page starts at rio
, which is the last syllabe of the word ferroviario
. There is a whole line missing:
el levantamiento del cadáver y en la toma de declaración el ferrovia-
Browser is Google Chrome 86.0 (latest) over macOS 10.15.7 (Catalina).
I have set up a test case in Codepen.