-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed
Description
Bug description
The data CSV file breaks if we submit a field that contains multiline text (a text that contains new line characters).
- The CSV generated by Datami widget does not seem to include quotes around the fields.
- and/or the newline ( '\n' ) chars are not escaped by the form.
The resulting CSV is broken into multilines and
- the CSV validation fails in CI
- even if we bypass the validation, the resulting CSV will not be loaded correctly in a next iteration by the widget.
To Reproduce
- Open the widget in edition at: https://boavizta.github.io/ict-sustainability-tools/
- Edit a multiline field using the widget (for example use
enterkey in thequick_descriptionfield). - Submit the form.
Example of broken PR: #57
Expected behavior
Either make Datami widget quote the values in the CSV or/and escape new line character prior to submitting the form.
JSON OUTPUT
Additional context
Maybe I miss something obvious in the way to configure the widget to prevent this behaviour....
If we cannot fix it, we may also just completly forbid multiline (or long) text. But this may be impractical to display and edit the description.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinghelp wantedExtra attention is neededExtra attention is needed