-
Notifications
You must be signed in to change notification settings - Fork 19
How do you deal with excess newlines? #193
Comments
Are you concerned about the added whitespace, or the formatting? If it is the former, you could use a layout to minimise the html: https://github.com/penibelst/jekyll-compress-html If it is the latter then you can only really deal with that by formatting your pre-compiled code horribly, and I wouldn't advise that personally. |
Post-processing ( However, in the past, I have created liquid "functions" with liquid filters that provide for stripping newlines, etc. which accomplish more or less the same thing. See the page, "Liquid for Designers", and reference some of the stripping filters that remove the i.e. |
So the idea would be to |
Yes; something like that... in some form or fashion, depending on your end goal. I created routines/functions that handled doing that via an |
Cool beans, sounds doable, especially within the include itself! |
Forloops, if-else conditionals and all that Liquid goodness leaves A LOT of trailer lines in my compiled code. Aside from running an HTML linter on top of the result, are there any good ways to deal with the cosmetic problem?
The text was updated successfully, but these errors were encountered: