Skip to content

Commit

Permalink
v1.4 release, fix span build
Browse files Browse the repository at this point in the history
  • Loading branch information
2dxgujun committed Jan 25, 2018
1 parent 284ce82 commit e4d6ec8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion span/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ dependencies {

def GROUP = 'me.gujun.android'
def ARTIFACTID = 'span'
def VERSION = '1.3'
def VERSION = '1.4'

group = GROUP
version = VERSION
Expand Down
6 changes: 4 additions & 2 deletions span/src/main/kotlin/me/gujun/android/span/span.kt
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,11 @@ class Span(val parent: Span? = null) : SpannableStringBuilder() {
p = p.parent
}
append(text)
buildCharacterStyle(builder)
buildParagraphStyle(builder)
} else {
buildParagraphStyle(builder)
}
buildCharacterStyle(builder)
buildParagraphStyle(builder)

builder.addAll(spans)
builder.forEach {
Expand Down

0 comments on commit e4d6ec8

Please sign in to comment.