Resolves issue #195, justification of the final line of paragraphs. #196

Merged
merged 1 commit into from Jun 28, 2012

Projects

None yet

2 participants

@JasonLion
Contributor

Justify is still justifying the last line of some paragraphs, despite
pull request #180/ issue #179.

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 are solved with this change.

@JasonLion JasonLion Prevent justification of the final lines of paragraphs
Justify is still justifying the last line of some paragraphs, despite
pull request #180/ issue #179.

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 are solved with this change.
16650b7
@odrobnik odrobnik merged commit 3c21d64 into Cocoanetics:master Jun 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment