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

Whitespace before inline-block elements #2682

Closed
alosev opened this issue Jan 24, 2017 · 2 comments
Closed

Whitespace before inline-block elements #2682

alosev opened this issue Jan 24, 2017 · 2 comments

Comments

@alosev
Copy link

alosev commented Jan 24, 2017

Hello!

I can not find anywhere. How do I remove white spaces in front of inline-block elements and to output a structure like this:

<ul>
 <li>Item</li><!--
 --><li>Item</li><!--
 --><li>Item</li><!--
 --><li>Item</li>
</ul>
@ForbesLindesay
Copy link
Member

Do not pass {pretty: true}, it breaks lots of things and as such we generally view it as unsupported. It exists purely to generate readable code in our documentation.

If you disable pretty, it will not put whitespace between elements. You can manually add whitespace using = ' ' in the relatively rare situations when you need it.

@alosev
Copy link
Author

alosev commented Jan 24, 2017

This option will certainly work as if I run the code through a minimizer. But I would like to preserve readability and be able to operate with such structures. So, it seems, will not work, as I understand it. Thank you! I'll think on a solution.

miewx added a commit to miewx/parcel that referenced this issue Jan 1, 2019
pug will add space between inline block element  ( see pugjs/pug#2682 ) where use pretty:true, then there will be space in page .

so , I think should let user can config pretty:false for the  visual effect development
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

2 participants