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

Removed Exessive New Lines via Liquid #5161

Closed
wants to merge 1 commit into from

Conversation

cocacool49
Copy link

This is an enhancement or feature.

Summary

Context

When checking on the HTML source I noticed extensive new lines.
I have checked on the liquid and {% ... %} should be {%- ... -%}
Beore correction 368 lines after 97.
Now the HTML output is cleaner

I have not found any

kind regards
Seb

 {% ... %} in liquid should be {%- ... -%}

 empty repo rendered before change 368 lines, now 97
 and the source is compact and easy to read
@cocacool49 cocacool49 changed the title Master Removed Exessive New Lines via Liquid Mar 12, 2025
@iBug
Copy link
Collaborator

iBug commented Mar 22, 2025

If you're looking to make the output HTML more compact, either check out the compress layout or use something like jekyll-tidy like I do.

This kind of blind search-and-replace is not going to be productive and will sooner or later introduce obscure bugs, especially when operating on non-HTML parts like JS and CSS.
So thank you for the idea, but I'm not going to accept this change.

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

Successfully merging this pull request may close these issues.

2 participants