django-flat-json-widget
django-flat-json-widget copied to clipboard
[flat-json-widget] Preserve newline characters in input fields. Issue where newline characters (`\n`) in input fields were removed when saving via the HTML form. Updated the logic to ensure newline characters are preserved in both display and saved data. Fixed #19
[flat-json-widget] Preserve newline characters in input fields (#19)
Description:
This PR fixes an issue where newline characters (\n) in input fields were being removed upon saving data through the HTML form. The logic has been updated to ensure that newline characters are preserved correctly in both the display and the saved data.
Fixes #19
Checklist:
- [x] I have followed the OpenWISP contribution guidelines.
- [x] I have manually tested the changes proposed in this pull request.
Testing:
- Verified that newline characters are retained in the input fields when editing and saving data via the HTML form.
This is my first time creating a PR, and I was trying to follow your contribution guidelines. I mistakenly committed four times, but the main fix is in the first commit. Please review it.