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.