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

Removing line breaks in merged docment #7

Open
marine44 opened this issue Mar 9, 2011 · 0 comments
Open

Removing line breaks in merged docment #7

marine44 opened this issue Mar 9, 2011 · 0 comments

Comments

@marine44
Copy link

marine44 commented Mar 9, 2011

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?

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

1 participant