Configuration exports content value with \r\n for newlines when Drupal core supports exporting actual (much easier to read) newlines

Created on 24 October 2022, about 2 years ago
Updated 25 January 2024, 10 months ago

Problem/Motivation

Thanks to ✨ Export configuration YAML strings as multiline Fixed most configuration in Drupal (such as config/user.mail.yml that has line breaks outputs into the yaml file with the line breaks, and it is really nice and much easier to read than a bunch of inline \r\n characters.

This is not happening for me with Simple Block and it would be great to have the usual config experience.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: works as designed

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States mlncn Minneapolis, MN, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    For this to work the module should add "#normalize_newlines" to each textarea form field.

  • Status changed to Needs review about 1 year ago
  • Open in Jenkins β†’ Open on Drupal.org β†’
    Core: 10.1.x + Environment: PHP 8.1 & MySQL 8
    last update about 1 year ago
    1 pass
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    The module uses a field of type=text_format and not type=textarea, so I'm not sure if this will work, it might need to be fixed in core for this field type.

  • Status changed to Closed: works as designed 10 months ago
  • πŸ‡ΊπŸ‡¦Ukraine AstonVictor

    Hi @mlncn,

    user.mail.yml config uses type: mailschema.
    simple_block.* config uses type: text_format schema that should contain value property as a string without breaking lines.

Production build 0.71.5 2024