These days, I’m adapting an algorithm for automatically adjusting text on page breaks.

Everything would be simple if we did not support the DOCX format and just give a damn on the correct display of text in different templates with different fonts and on its compatibility with other text editors. But this is not our way ;) Therefore, I had to pull out from the bug tracker all the bugs associated with this functionality and finally do everything in the right way, and throw out all the crutches that propped up this functionality.