Skip to content

Commit

Permalink
removed white-space trimming of element content in the parser
Browse files Browse the repository at this point in the history
  • Loading branch information
Manfred Odenstein committed Jul 17, 2020
1 parent 82dbffa commit bcf3533
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group = "com.solitec.aixm"
version = "1.0.0"
version = "1.0.1"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ class PartialDocumentHandler(private val receiver: PartialHandler) : DefaultHand
*/
private fun finalizeElement() {
val element = this.elementStack.pop()
val text = this.characters.toString().trim { it <= ' ' }
if (text.isNotEmpty()) {
val text = this.characters.toString()
if (text.trim { it <= ' ' }.isNotEmpty()) {
element.textContent = text
}
}
Expand Down

0 comments on commit bcf3533

Please sign in to comment.