Re: [Puppet Users] ERB template issues in an xml document

2015-04-15 Thread Mark Rosedale
So there wasn't any white space after the closing >, but I do work on a Windows box from time to time and remembered that I had copied that code snippet on that box. So runing the dos2unix on the template did indeed fix my issue and now I have the correct number of lines. Thanks for the help N

Re: [Puppet Users] ERB template issues in an xml document

2015-04-14 Thread Neil - Puppet List
Another random thought, run dos2unix on the template? On 14 Apr 2015 22:39, "Neil - Puppet List" wrote: > Glad you just care why. > > so I agree you should not be seeing the extra lines. > > Do you have extra whitespace after the > ? > > key and value are bothering me. > Is key something else unr

Re: [Puppet Users] ERB template issues in an xml document

2015-04-14 Thread Neil - Puppet List
Glad you just care why. so I agree you should not be seeing the extra lines. Do you have extra whitespace after the > ? key and value are bothering me. Is key something else unrelated? (Should it be @key?) If you remove that line do you get the same behaviour? Neil I care because I shouldn't be

Re: [Puppet Users] ERB template issues in an xml document

2015-04-14 Thread Mark Rosedale
I care because I shouldn't be getting the new line if I'm using the closing -%> correct? And in any other type of file I do this very same syntax I don't get empty lines. So why is it happening here? On Tuesday, April 14, 2015 at 3:10:58 PM UTC-4, Neil - Puppet List wrote: > > Hello > > You hav

Re: [Puppet Users] ERB template issues in an xml document

2015-04-14 Thread Neil - Puppet List
Hello You have 3 newlines there which I've marked with Xs I expect you to get N+2. But why do you care? Out of "I wonder why that is happening?" Is fine. Beyond that the XML is for a machine not you to spend your time reading. I hope :) Neil On 14 Apr 2015 16:20, "Mark Rosedale" wrote: > > So I

[Puppet Users] ERB template issues in an xml document

2015-04-14 Thread Mark Rosedale
So I have an erb template. x.xml.erb Inside the file I iterate over an array to add some contents to the file. It looks like so. <%- @x_custom.each do |value| -%> <%= value %> <%- end -%> <%= key %> However, I'm having an issue when puppet actually updates that file. If I have an array