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

Reorganise whitespace in the vhost header and location header/footer. #502

Merged
merged 1 commit into from
Nov 12, 2014

Conversation

cewood
Copy link
Contributor

@cewood cewood commented Nov 12, 2014

The current vhost header and location header/footer templates insert new lines after a location, which can lead to overlapping/joined lines, and doesn't seem the best approach; as one can't assume there will always be more blocks that follow.

It would be more appropriate to include the new line before a new location block (or any other block inside the vhost for that matter) is inserted, which then naturally lends itself to the convention of only pre-pending new lines to said configuration blocks, never appending them.

I stumbled onto this when I came across a location statement that was appearing on the same line as other directives, the error log to be precise.

The current template inserts newlines after a location, which doesn't
seem logical; one can't assume there will always be more blocks that
follow. Therefore it is only logical to include the newline before a
new location block is inserted, which lends itself to the convention
of only prepending newlines to blocks, never appending them.
3flex added a commit that referenced this pull request Nov 12, 2014
Reorganise whitespace in the vhost header and location header/footer.
@3flex 3flex merged commit 1eb0b12 into voxpupuli:master Nov 12, 2014
cegeka-jenkins pushed a commit to cegeka/puppet-nginx that referenced this pull request Oct 23, 2017
Reorganise whitespace in the vhost header and location header/footer.
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

Successfully merging this pull request may close these issues.

None yet

2 participants