Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add support for line break mode #128

Merged
merged 3 commits into from
Mar 28, 2016

Conversation

tettoffensive
Copy link
Contributor

For #111


// Line Break Mode

if (self.lineBreakMode != NSLineBreakByWordWrapping) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would prefer not to rely on the implementation detail that this property is initialized to 0, which happens to equal NSLineBreakByWordWrapping. Please add explicit initialization to -init of BONText.m.

@ZevEisenberg
Copy link
Collaborator

@tettoffensive thanks for your PR! If you'd be willing to address my one comment, then I'd happily test and merge this.

@tettoffensive
Copy link
Contributor Author

@ZevEisenberg happy to address. I've added to the init

@@ -75,6 +75,7 @@ - (void)testParagraphStyle
.headIndent(2.34)
.tailIndent(3.45)
.lineHeightMultiple(3.14)
.lineBreakMode(NSLineBreakByTruncatingTail)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind moving this down below .lineSpacing(2.72)? Line break mode is after line spacing everywhere else, and that consistency makes it very easy to validate that it's in all the places it should be.

@ZevEisenberg
Copy link
Collaborator

@tettoffensive just the one additional comment, and then I'm good to go. I double checked and tested it, and it looks great.

@tettoffensive
Copy link
Contributor Author

@ZevEisenberg moved the line

@ZevEisenberg ZevEisenberg merged commit 662f4da into Rightpoint:master Mar 28, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants