Skip to content

Commit 43c572d

Browse files
Fix colon bug
1 parent b2c68b3 commit 43c572d

File tree

1 file changed

+6
-3
lines changed
  • jsontree/src/commonMain/kotlin/com/sebastianneubauer/jsontree/util

1 file changed

+6
-3
lines changed

jsontree/src/commonMain/kotlin/com/sebastianneubauer/jsontree/util/AnnotatedText.kt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,9 @@ internal fun rememberCollapsableText(
5858
withStyle(SpanStyle(color = colors.indexColor)) {
5959
append(key)
6060
}
61+
withStyle(SpanStyle(color = colors.symbolColor)) {
62+
append(": ")
63+
}
6164
} else if (parentType != ParentType.ARRAY) {
6265
withStyle(SpanStyle(color = colors.keyColor)) {
6366
append("\"$key\"")
@@ -75,10 +78,10 @@ internal fun rememberCollapsableText(
7578
end = keyRange.range.last + 1 + 1
7679
)
7780
}
78-
}
7981

80-
withStyle(SpanStyle(color = colors.symbolColor)) {
81-
append(": ")
82+
withStyle(SpanStyle(color = colors.symbolColor)) {
83+
append(": ")
84+
}
8285
}
8386
}
8487

0 commit comments

Comments
 (0)