The example you provided is a bit special / fabricated because:
it has a single long paragraph with many line breaks that produce a ton of BRs tags
the same content is repeated multiple times
Unfortunately this kind of fabricated content is not handled well by paged.js, the library we use to split the content into print pages. It throws this exception:
Layout repeated at: "amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et"
layout @ paged.polyfill.js?r=1:3097
This issue has been reported already as XWIKI-20298 , so I consider it to be a duplicate. I suppose you can't provide the original content, so you should check:
why is your original content having so much BRs, which is uncommon (even bad practice)
why does your original content have big chunks of repeated / duplicated sections, which again is uncommon
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.