From ddeac0284bb25bba69d2b9cf4f69c63de7a49dc5 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 12 Sep 2014 20:54:41 -0500 Subject: Don't use undent on keg-only reasons It will cut off the beginning of any interpolated lines. Fixes Homebrew/homebrew#32259. --- Library/Homebrew/formula_support.rb | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/Library/Homebrew/formula_support.rb b/Library/Homebrew/formula_support.rb index 12ca38e66..77089d42c 100644 --- a/Library/Homebrew/formula_support.rb +++ b/Library/Homebrew/formula_support.rb @@ -24,23 +24,23 @@ class KegOnlyReason def to_s case @reason - when :provided_by_osx then <<-EOS.undent - Mac OS X already provides this software and installing another version in - parallel can cause all kinds of trouble. + when :provided_by_osx then <<-EOS +Mac OS X already provides this software and installing another version in +parallel can cause all kinds of trouble. - #{@explanation} - EOS - when :shadowed_by_osx then <<-EOS.undent - Mac OS X provides similar software, and installing this software in - parallel can cause all kinds of trouble. +#{@explanation} +EOS + when :shadowed_by_osx then <<-EOS +Mac OS X provides similar software, and installing this software in +parallel can cause all kinds of trouble. - #{@explanation} - EOS - when :provided_pre_mountain_lion then <<-EOS.undent - Mac OS X already provides this software in versions before Mountain Lion. +#{@explanation} +EOS + when :provided_pre_mountain_lion then <<-EOS +Mac OS X already provides this software in versions before Mountain Lion. - #{@explanation} - EOS +#{@explanation} +EOS when :provided_until_xcode43 "Xcode provides this software prior to version 4.3.\n\n#{@explanation}" when :provided_until_xcode5 -- cgit v1.2.3