Skip to content

Commit

Permalink
Fix indentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
pdvrieze committed Jan 6, 2025
1 parent 0c92ef5 commit 01f822a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,13 +124,13 @@ public class DomReader(public val delegate: Node2) : XmlReader {
get() {
fun <A : Appendable> helper(node: Node2?, result: A): A = when (node?.nodetype) {
null, NodeType.DOCUMENT_NODE
-> result
-> result

NodeType.ELEMENT_NODE
-> helper(node.parentNode, result).apply { append('/').append(node.nodeName) }
-> helper(node.parentNode, result).apply { append('/').append(node.nodeName) }

NodeType.TEXT_NODE
-> helper(node.parentNode, result).apply { append("/text()") }
-> helper(node.parentNode, result).apply { append("/text()") }

else -> helper(node.parentNode, result).apply { append("/.") }
}
Expand Down

0 comments on commit 01f822a

Please sign in to comment.