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

Paragraph text can now explicitly be spanned #58

Merged
merged 1 commit into from
Aug 14, 2018
Merged

Paragraph text can now explicitly be spanned #58

merged 1 commit into from
Aug 14, 2018

Conversation

c-b-h
Copy link
Contributor

@c-b-h c-b-h commented Aug 13, 2018

Background:
Consumers of the library may for instance want line spacing for the
paragraph text but TextView's lineSpacingMultiplier and/or
lineSpacingExtra apply line spacing to all lines.

With this change, paragraphs may explicitly be spanned with a paragraph
affecting span such as LineHeightSpan while the other tags
(e.g. headings) may be kept unaffected.

Background:
Consumers of the library may for instance want line spacing for the
paragraph text but TextView's `lineSpacingMultiplier` and/or
`lineSpacingExtra` apply line spacing to all lines.

With this change, paragraphs may explicitly be spanned with a paragraph
affecting span such as `LineHeightSpan` while the other tags
(e.g. headings) will be unaffected.
@noties noties added this to the 1.1.1 milestone Aug 13, 2018
@noties
Copy link
Owner

noties commented Aug 13, 2018

Looks good! 👍

@noties noties merged commit 692ce7a into noties:v1.1.1 Aug 14, 2018
@c-b-h c-b-h deleted the feature/explicit_paragraph_span_support branch August 14, 2018 09:57
@noties noties mentioned this pull request Aug 18, 2018
noties added a commit that referenced this pull request Aug 18, 2018
* Fix OrderedListItemSpan text position (baseline) (#55)
* Add softBreakAddsNewLine option for SpannableConfiguration (#54)
* Paragraph text can now explicitly be spanned (#58) 
  Thanks to @c-b-h!
* Fix table border color if odd background is specified (#56)
* Add table customizations (even and header rows)
This pull request was closed.
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