Remove \r so that exported agents have literal block scalar
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3535525. -->
Reported by: [marcus_johansson](https://www.drupal.org/user/385947)
Related to !159
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Currently the exported agents puts the entire system prompt on one row - this is horrible for doing diffing, which means when multiple people works on an agent you will have massive merge conflicts.</p>
<p>Core supports <a href="https://www.drupal.org/project/drupal/issues/2844452">literal block scalars</a>, but it <a href="https://www.drupal.org/project/drupal/issues/3202796">normalizes newlines with \r in it</a> causing this to fail.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>Export an agent with multiple rows.</p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>Manually remove the \r when the config is being saved.</p>
issue