You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like this is caused by 55868bf. I'm guessing the change made results in a discrepancy in the text being parsed in two separate pieces of code. I'll take a look but if correcting the issue is non-trivial we might just revert and move forward with the 0.8.6 release, pushing off the text alignment issue (#1174) for 0.8.7.
bsweeney
changed the title
A word wider than it's containing block causes infinite recursion
Container with space padding around a word wider than it's containing block causes infinite recursion
Jul 19, 2020
If we trim white space at a split before a line break has been applied then we may end up collapsing the space between words. And if we trim before determining the index at which to split we may end up with an infinite loop where the space character is put into a new frame in the same line over and over again. We only want to trim the white space from the current text frame if the split is going to result in a new line.
Also, we no longer need to add a space when calculating justified text line width. This was an artifact of the previous logic that did not always remove trailing spaces from a line.
Addresses #1174, #2188
When an element contains a word that is wider then the element's width, Dompdf appears to enter an infinite recursion.
The following minimal case illustrates the issue with the 0.8.6 code base (current "develop" branch).
The text was updated successfully, but these errors were encountered: