diff --git a/span/build.gradle b/span/build.gradle index 81e794d..d32bbe0 100644 --- a/span/build.gradle +++ b/span/build.gradle @@ -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 diff --git a/span/src/main/kotlin/me/gujun/android/span/span.kt b/span/src/main/kotlin/me/gujun/android/span/span.kt index d9c7ef3..7143499 100644 --- a/span/src/main/kotlin/me/gujun/android/span/span.kt +++ b/span/src/main/kotlin/me/gujun/android/span/span.kt @@ -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 {