Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Justify is still justifying the last line of paragraphs #195
There are two bugs. First, the calculation of isAtEndOfParagraph on line 172 of DTCoreTextLayoutFrame.m is wrong, checking to see if the line starts at the end of the paragraph. Second, a br doesn't end the paragraph but should suppress justification as if it was the end of the paragraph.
Both issues can be solved with the following change to the calculation of isAtEndOfParagraph on line 172 of DTCoreTextLayoutFrame.m: