kotlinx.html
kotlinx.html copied to clipboard
Invalid html generated with pretty-print
trafficstars
val x = StringBuilder().appendHTML().html {
body {
article {
p {
}
a {
+"aaa"
}
span { }
}
}
}.toString()
Indent is placed in the wrong place, appending space to <A> content.
Currently it will produce
<html>
<body>
<article>
<p></p>
<a>aaa</a><span></span></article>
</body>
</html>
it is not ideal but the issue is fixed
I guess this should be closed now after 7 years?