I use GitHub Pages for my blog, and am running into a problem with Jekyll. My post.html has a block like this:
{% for testpost in site.posts %} {%
Since Liquid v4 (included in Jekyll from v3.5) there is a Whitespace control, which finally resolved case with blank line, white space, etc.
Liquid v4
Jekyll
v3.5
Whitespace control
Link to documentation: https://shopify.github.io/liquid/basics/whitespace/