Skip to content

Removing line breaks in merged docment #7

@marine44

Description

@marine44

I love your plugin - it is absolutely amazing. I have it up and running almost immediately.

Lets say I have the following in my template:

<-- beginning of template -->
Clients
{% for client in Client.all %}
{% if client.type == 'Active' %}
{%= client.name %}
{% end %}
{% end %}
<-- end of template -->

In the merge file I end up with:

<-- beginning of merge file -->
Clients

Client 1

Client 2

Client 3
<-- end of merge file -->

As you can see there are line breaks in there where the for loops are. I have reied using {% for_loop -%} (note the minus sign - hopeful I know).

Is there any way to avoid this from happening?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions