Issue #3395 has been updated by Alan Barrett.
#3514 is related.
Perhaps adding \r to the value of @skip will help it to treat \r like other
whitespace, but I haven't tested this:
<pre>
--- lib/puppet/parser/lexer.rb
+++ lib/puppet/parser/lexer.rb (working copy)
@@ -340,7 +340,7 @@
@file = nil
# AAARRGGGG! okay, regexes in ruby are bloody annoying
# no one else has "\n" =~ /\s/
- @skip = %r{[ \t]+}
+ @skip = %r{[ \t\r]+}
@namestack = []
@indefine = false
</pre>
----------------------------------------
Bug #3395: CR+LF line endings in manifests cause syntax error
http://projects.puppetlabs.com/issues/3395
Author: Marek Obuchowicz
Status: Rejected
Priority: Normal
Assigned to:
Category: parser
Target version:
Affected version: 0.25.3
Keywords:
Branch:
As subject says - CR+LF (windows-specific) line endings in manifests cause
syntax error while parsing manifest files.
This error may trigger if you create manifest files under windows and then
upload it to SVN repo.
--
You have received this notification because you have either subscribed to it,
or are involved in it.
To change your notification preferences, please click here:
http://projects.puppetlabs.com/my/account
--
You received this message because you are subscribed to the Google Groups
"Puppet Bugs" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-bugs?hl=en.