Skip to content

TextArea renders first line incorrectly if use renderFormatted() #102

@ijabz

Description

@ijabz

j2html is prepending textarea contents with some spaces on first line if I render page with renderFormatted(). It is okay if I just use render() but I really need to use renderFormatted() to make the html readable.

i.e textarea("fred\ntom")

gives

                                <textarea>
                                    fred
tom
                                </textarea>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions