There are many spaces in the middle of my text. Using white_space: pre_wrap in the browser can break the lines correctly, but the resulting PDF line break does not match the expectation
Bug with white-space:pre-wrap,Line breaking with multiple spaces
That is interesting, if I replace the spaces with underscore then it works, but with space it fails. We will investigate this issue.
We have fixed this issue in the latest build of Prince, thanks for letting us know about the problem!