kotlinx.html icon indicating copy to clipboard operation
kotlinx.html copied to clipboard

Invalid html generated with pretty-print

Open orangy opened this issue 10 years ago • 2 comments
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.

orangy avatar Oct 19 '15 15:10 orangy

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

cy6erGn0m avatar Oct 22 '15 16:10 cy6erGn0m

I guess this should be closed now after 7 years?

skaldebane avatar Aug 30 '22 14:08 skaldebane