Skip to content

Commit b78091a

Browse files
authored
Fix Input composable parentheses (#5)
Fixes the parentheses location for Input nodes. Parsed attributes should be added as an argument for the resulting string.
1 parent 7090f2b commit b78091a

File tree

1 file changed

+2
-2
lines changed
  • converter/src/main/kotlin/de/jensklingenberg/htmltocfw/converter/node

1 file changed

+2
-2
lines changed

converter/src/main/kotlin/de/jensklingenberg/htmltocfw/converter/node/InputNode.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class InputNode(private val attrs: List<ComposeAttribute>, val type: String) : M
2020
val arguments = mutableListOf<String>()
2121

2222
if (attrs.isNotEmpty()) {
23-
str += parseAttributes(attrs)
23+
arguments.add(parseAttributes(attrs))
2424
}
2525

2626
if (type.isNotBlank()) {
@@ -42,4 +42,4 @@ class InputNode(private val attrs: List<ComposeAttribute>, val type: String) : M
4242
}
4343
}
4444

45-
}
45+
}

0 commit comments

Comments
 (0)