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

Statements create white spaces #1820

Closed
Javivi opened this issue Feb 5, 2016 · 3 comments
Closed

Statements create white spaces #1820

Javivi opened this issue Feb 5, 2016 · 3 comments
Labels

Comments

@Javivi
Copy link

Javivi commented Feb 5, 2016

Statements create a whole empty line at formatting time instead of being ignored if they don't add any content to the website.

1
2

@digitalcraftsman
Copy link
Member

Hello @Javivi,

this is caused by the template engine of Go that is used in this theme. The upcoming release of Go 1.6 has a new notation that allows you to avoid this problem by trimming the whitespace automatically. See golang/go#9969.

For a demo take a look at this YouTube video (starts at min. 19).

I think the next version of Hugo will be build with Go 1.6 (including the new template features). If you want to use this ealier you have the option to compile Hugo yourself after the release of Go 1.6.

@Javivi
Copy link
Author

Javivi commented Feb 5, 2016

Thank you for the heads up.

@Javivi Javivi closed this as completed Feb 5, 2016
@github-actions
Copy link

github-actions bot commented Apr 9, 2022

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 9, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants