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

Too many blank lines are being generated #26

Open
Andrew15-5 opened this issue Feb 5, 2024 · 4 comments
Open

Too many blank lines are being generated #26

Andrew15-5 opened this issue Feb 5, 2024 · 4 comments

Comments

@Andrew15-5
Copy link
Contributor

I've noticed that Liquid syntax generates a bunch of blank lines, which makes the output files very messy and untidy.

Though I'm already working on fixing it. It makes the template files a bit clunky, but with a magic of manual formatting it doesn't really look that bad. And I don't think template language files supposed to look beautiful, only if it doesn't change the way an output file looks.

@ealmloff
Copy link
Member

ealmloff commented Feb 5, 2024

We format the toml files here in the dioxus cli to clean up the output of the template

@Andrew15-5
Copy link
Contributor Author

Oh man, I didn't know that and was running the cargo generate CLI instead. Good, so at least toml files can have both: tidy template files and tidy output files.

@Andrew15-5
Copy link
Contributor Author

Oh, nah. I was checking my WIP template. With the default template, it still prints unnecessary blank lines in toml files. So I have to change them anyway, but not as much as I thought (probably).

@Andrew15-5
Copy link
Contributor Author

Pretty sure right now (not) discussing #42 is a blocker. This issue is attached to the no-subtemplates version of the template.

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

No branches or pull requests

2 participants