You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an error when I store a multiline from a textarea form field, because in Yaml data file the textarea field has stored without > or | and indentation for each row.
I suggest to modify line 6 of forms/data.txt.twig from:
{{- field.name ?? index }}: {{ string((value is iterable ? value|json_encode : value)) ~ "\r\n" }}
To:
{{- field.name ?? index }}: {{ string((value is iterable ? value|json_encode : ("\n" in value ? (">\r\n " ~ value|replace({"\n": "\n "})) : value))) ~ "\r\n" }}
Perhaps it is better to create a specific twig file to perform this.
The text was updated successfully, but these errors were encountered:
I have an error when I store a multiline from a textarea form field, because in Yaml data file the textarea field has stored without
>
or|
and indentation for each row.I suggest to modify line 6 of
forms/data.txt.twig
from:To:
Perhaps it is better to create a specific twig file to perform this.
The text was updated successfully, but these errors were encountered: