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

API method to beautify HTML #139

Closed
sindresorhus opened this issue Nov 23, 2012 · 3 comments
Closed

API method to beautify HTML #139

sindresorhus opened this issue Nov 23, 2012 · 3 comments

Comments

@sindresorhus
Copy link
Member

Cheerio leaves a lot of trailing-space and empty lines, and since the result is for an end-user we should have a method to beautify the HTML.

This one looks promising: https://github.com/maxogden/commonjs-html-prettyprinter

@SBoudrias
Copy link
Member

That's how we implemented HTML beautifing over on the BBB generator: https://github.com/backbone-boilerplate/generator-bbb/blob/master/lib/generators/base/bbb-generator.js#L153-L166

If you want, I can send a PR with this included.

The only question really is how would Yeoman manage/infer user configurations?

@addyosmani
Copy link
Member

I'd <3 to see a PR with this included. Maybe some global config (we've had discussions about this before) would solve the question you had?

@SBoudrias
Copy link
Member

Kinda duplicate #285 - Let's merge these issues.

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

3 participants