Skip to content

[gnoweb] Textarea forms doesn't render when using a multiline value #4968

@jeronimoalbi

Description

@jeronimoalbi

Description

Gnoweb supports custom falvored Markdown that allows the definition of forms. One of the supported form elements is the Textarea. Elements can have a default value assigned, but in the case of Textarea if the value contains newline characters it's not rendered, it's only rendered when single line text is assigned.

Steps to reproduce

Create a realm with a Render() function that returns the following Markdown text:

<gno-form>
  <gno-textarea name="content" value="First line\nSecond line" />
</gno-form>

Expected behaviour

Textarea is rendered and its content is the assigned multiline text.

Actual behaviour

Textarea is not rendered within the form.

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

Status

Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions