 9b8c30e0c8
			
		
	
	
		9b8c30e0c8
		
	
	
	
	
		
			
			`odisabled` will still return for a formula in `.brew`. This means `EOS.undent` returns `nil` and the formula cannot be parsed. Instead return the actual string in this case to avoid e.g. patches blowing up with `nil` strings. Fixes #4049.
		
			
				
	
	
		
			20 lines
		
	
	
		
			885 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			885 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
| class String
 | |
|   def undent
 | |
|     odisabled "<<-EOS.undent", "<<~EOS"
 | |
|     self
 | |
|   end
 | |
|   alias unindent undent
 | |
| 
 | |
|   # eg:
 | |
|   #   if foo then <<-EOS.undent_________________________________________________________72
 | |
|   #               Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do
 | |
|   #               eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad
 | |
|   #               minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip
 | |
|   #               ex ea commodo consequat. Duis aute irure dolor in reprehenderit in
 | |
|   #               voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur
 | |
|   #               sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt
 | |
|   #               mollit anim id est laborum.
 | |
|   #               EOS
 | |
|   alias undent_________________________________________________________72 undent
 | |
| end
 |