Ensure exported multi-line config is human-friendly
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3546006. -->
Reported by: [codebymikey](https://www.drupal.org/user/3573206)
Related to !1127
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>This feature is close to landing in <span class="drupalorg-gitlab-issue-link project-issue-status-info project-issue-status-13"><a href="https://www.drupal.org/project/drupal/issues/3202631" title="Status: Needs work">#3202631: Add Textarea option to normalize newlines to \n</a></span> (and depends if it gets backported to certain versions of Drupal or not).</p>
<p>The issue is that exported configurations which contain "\r\n" aren't exported in a manner that's human-readable, which is very important for things such as prompts, as you should be easy to review config changes relating to it.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce (required for bugs, but not feature requests)</h4>
<p>Certain multiline configurations such as the ai_assistant_api's instructions and prompts can be very long pieces of text, however they're exported as a single line, which makes it difficult to review changes for.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>All textarea elements "\r\n" should be normalized to "\n" to ensure that the exported prompt strings in the YAML file are easier to read and compare.</p>
issue