- π¬π§United Kingdom AaronMcHale Edinburgh, Scotland
Does anyone have a quick fix for this? It's mildly annoying to have to go through each file and manually add a new line after every config export.
Thanks.
- πΊπΈUnited States damienmckenna NH, USA
I've been using multiline_config to work around the problem.
- π¬π§United Kingdom AaronMcHale Edinburgh, Scotland
@DamienMcKenna thanks, does multiline_config actually have any effect in 9.3 onwards? The project page states that the module is no longer needed in 9.3+, yet obviously the issue of no new line at the end of a file is still a problem, so maybe I'm missing something?
- πΊπΈUnited States damienmckenna NH, USA
It's not technically needed, but it still works and can work around this core bug.
- π¬π§United Kingdom AaronMcHale Edinburgh, Scotland
Awesome, will give it a try!
- πΊπΈUnited States jrearick Iowa
We are affected by this as well. Our linters are calling this out as an error. In our example, we're seeing this in `webform.webform_options.foo.yml` where the `options` key is the last one and multiline. Our workaround was to add extra line breaks in the webform yml editing UI.
- πΊπΈUnited States joegl
This is popping up in our PHPCS scans and typically only affects the
user.mail.yml
configuration after almost every configuration export. Because it does not cause any problems, we've chosen to ignore it in the PHPCS configuration:<rule ref="Drupal.Files.EndFileNewline.NoneFound"> <exclude-pattern>*config/sync/user.mail.yml</exclude-pattern> </rule>