tipsy / j2html

Java to HTML generator. Enjoy typesafe HTML generation.

Home Page:https://j2html.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

each() creates incorrect indent when using renderFormatted()

obecker opened this issue · comments

This code

html(body(each(Stream.of(div(), div())))).renderFormatted()

creates this HTML:

<html>
    <body>
            <div>
        </div>
        <div>
        </div>
        </body>
</html>

Apparently the first <div> and the closing </body> are not aligned correctly.

Looks like everything is finished with the PR from #174. Ready to close.