Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Option to disable new line after yaml front matter #662

Closed
2 tasks done
NVolcz opened this issue May 22, 2023 · 1 comment
Closed
2 tasks done

[FEATURE] Option to disable new line after yaml front matter #662

NVolcz opened this issue May 22, 2023 · 1 comment
Labels

Comments

@NVolcz
Copy link

NVolcz commented May 22, 2023

Feature Request

Djlint adds a new line after yaml front matter in templates since 1b1cff3. This results in the generated files having a new line on the first line which breaks parsing for certain file types - some XML parsers expect the XML declaration to be on the first line.

I suggest to have an configuration option to disable this behavior.

christopherpickering pushed a commit that referenced this issue May 22, 2023
# [1.29.0](v1.28.0...v1.29.0) (2023-05-22)

### Bug Fixes

* **formatter:** fix cases where ignore was still formatting set and function code ([ab878ea](ab878ea)), closes [#659](#659)
* **formatter:** fix extra parenth being added in a function call ([faba4f4](faba4f4)), closes [#660](#660)
* **linter:** fixed missing positive on a few <img rules ([5f33d08](5f33d08))

### Features

* **formatter:** added option to disable newlines after yaml front matter ([9bf64ac](9bf64ac)), closes [#662](#662)
* **linter:** allow codes to be ignored for remainder of file ([4637a0f](4637a0f)), closes [#655](#655)
@christopherpickering
Copy link
Contributor

🎉 This issue has been resolved in version 1.29.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants