Skip to content

[bug] Input fields does not respect newlines #19

Open
@pandafy

Description

@pandafy

Steps to replicate

  1. Using the raw JSON mode, enter the following data which contains a newline character (\n)
{
    "var1": "line1\nline2",
}
  1. Save the object
  2. Edit the flat JSON widget, using the HTML form and add a new field
key: var2
value: line3

Expected outcome

  • The newline character is shown in the input field
  • The newline character is present in the data

Actual outcome

  • The newline character is removed from the value of var1 field upon saving the data using the HTML form

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    To do (Python & Django)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions