Issue #7221 has been updated by Daniel Pittman.

My implementation of this will be to identify the smallest amount of leading 
whitespace on any line, then eat that much leading whitespace, full stop.

This will work for pretty much every sane case, but will leave this one alone:

    foo = "one two
           three four"

I can't see any meaningful way to disambiguate that from deliberate indentation 
on the second line short of source inspected.
----------------------------------------
Bug #7221: Face documentation methods should strip some (but not all) 
whitespace from multi-line strings
https://projects.puppetlabs.com/issues/7221

Author: Nick Fagerlund
Status: Accepted
Priority: Normal
Assignee: Daniel Pittman
Category: Faces
Target version: Statler
Affected Puppet version: 2.7.0rc1
Keywords: 
Branch: 


Gotta use multi-line strings as arguments to the faces help methods. Things to 
consider: 

* Leading whitespace is a syntactical element in Markdown, so we can't just eat 
it.
* If we do a multi-line string in quotes instead of a heredoc, the first 
character will actually be flush left as far as Ruby can tell. Does that mean 
we should ONLY use heredocs for multiline strings, or is there a way around 
that? 


-- 
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.

Reply via email to