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

[pug-code-gen] Extra line break pretty if block in mixin contain only text #2707

Open
jeromew opened this issue Feb 7, 2017 · 0 comments
Open

Comments

@jeromew
Copy link
Contributor

jeromew commented Feb 7, 2017

From @werty1001 on October 21, 2016 19:36

Hi, extra line break pretty if block in mixin contain only text or inline tags:

mixin test()
    .test&attributes(attributes): block

// Call
+test Test text

Output:

<div class="test">Test text
</div>

Instead of:

<div class="test">Test text</div>

I explored pug-code-gen/index.js but dont't found how to fix it.

Copied from original issue: pugjs/pug-code-gen#29

@jeromew jeromew changed the title Extra line break pretty if block in mixin contain only text [pug-code-gen] Extra line break pretty if block in mixin contain only text Feb 7, 2017
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