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

No newlines after tags in html #8

Closed
tramker opened this issue Sep 25, 2016 · 2 comments
Closed

No newlines after tags in html #8

tramker opened this issue Sep 25, 2016 · 2 comments

Comments

@tramker
Copy link

tramker commented Sep 25, 2016

I've noticed that the diet-ng doesn't output the newline characters after tags.

doctype html
html
  body
    div something

diet-ng (vibe 0.7.30-beta.1) output:
<!DOCTYPE html><html><body><div>something</div></body></html>

classic diet (vibe 0.7.29) output:

<!DOCTYPE html>
<html>
    <body>
        <div>something</div>
    </body>
</html>
@s-ludwig
Copy link
Member

I started the other way around this time - the implementation in vibe.d does pretty printing, which is nice for debugging, but wastes transfer bandwidth, while diet-ng outputs as compact as possible. But the plan is definitely to add both modes to diet-ng.

@tramker
Copy link
Author

tramker commented Sep 27, 2016

Great, thanks.

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