Skip to content

Commit d34bba6

Browse files
committed
[flat-json-widget] Preserve newline characters in input fields #19
Fixed an issue where newline characters () 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
1 parent b1cb192 commit d34bba6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flat_json_widget/static/flat-json-widget/js/flat-json-widget.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ var initJsonKeyValueWidget = function(fieldName, inlinePrefix) {
103103
newValue[key] = value;
104104
});
105105

106-
// update textarea value
106+
// update textarea value
107107
$(rawTextarea).val(JSON.stringify(newValue, null, 4));
108108
};
109109

0 commit comments

Comments
 (0)