Issue #5022 has been updated by James Turnbull. Status changed from Ready for Testing to Closed Target version changed from 2.6.x to 2.6.3
Pushed in commit:"3b53bfcd0dd20a43c751b2b0d5dbb0e3463ef47b" in branch 2.6.x ---------------------------------------- Bug #5022: Multiline strings would be nice. https://projects.puppetlabs.com/issues/5022 Author: Jordan Sissel Status: Closed Priority: Normal Assignee: Category: Target version: 2.6.3 Affected Puppet version: 2.6.0 Keywords: string concatenate multiline Branch: MarkusQ:tickets/2.6.x/5022 Had a fellow in the IRC channel just now ask about how to do multiline strings (without newlines in them). The real request was for string concat so that he could wrap a long string sanely on multiple lines. Examples of things I tried that I expected to work: <pre> Code: $foo = "hello" + "world" Error: left operand of + is not a number at /home/jls/test.pp:2 on node snack.home Code: $foo = "test" \ "hello" Error: Could not parse for environment production: Syntax error at '\' at /home/jls/test.pp:1 Code (this one works, but clutters up the manifest): $foo = regsubst( "test hello", "\n *", " ") notice($foo) Output: notice: Scope(Class[main]): test hello </pre> Thoughts? Strings can span lines, but carry newlines. Would be nice if we could concatenate strings. -- 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.
