From c459349b897e21bab047d442095c0917c1069509 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Wed, 26 Aug 2015 17:04:02 -0400 Subject: [PATCH] reformat nested heredocs in BuildFlagsError and BuildToolsError to match String#undent behavior Closes Homebrew/homebrew#43303. Signed-off-by: Xu Cheng --- Library/Homebrew/exceptions.rb | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index f38233a4f5..7816d065c6 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -273,25 +273,25 @@ class BuildToolsError < RuntimeError if MacOS.version >= "10.10" xcode_text = <<-EOS.undent To continue, you must install Xcode from the App Store, - or the CLT by running: - xcode-select --install + or the CLT by running: + xcode-select --install EOS elsif MacOS.version == "10.9" xcode_text = <<-EOS.undent To continue, you must install Xcode from: - https://developer.apple.com/downloads/ - or the CLT by running: - xcode-select --install + https://developer.apple.com/downloads/ + or the CLT by running: + xcode-select --install EOS elsif MacOS.version >= "10.7" xcode_text = <<-EOS.undent To continue, you must install Xcode or the CLT from: - https://developer.apple.com/downloads/ + https://developer.apple.com/downloads/ EOS else xcode_text = <<-EOS.undent To continue, you must install Xcode from: - https://developer.apple.com/xcode/downloads/ + https://developer.apple.com/xcode/downloads/ EOS end @@ -320,24 +320,24 @@ class BuildFlagsError < RuntimeError if MacOS.version >= "10.10" xcode_text = <<-EOS.undent or install Xcode from the App Store, or the CLT by running: - xcode-select --install + xcode-select --install EOS elsif MacOS.version == "10.9" xcode_text = <<-EOS.undent or install Xcode from: - https://developer.apple.com/downloads/ - or the CLT by running: - xcode-select --install + https://developer.apple.com/downloads/ + or the CLT by running: + xcode-select --install EOS elsif MacOS.version >= "10.7" xcode_text = <<-EOS.undent or install Xcode or the CLT from: - https://developer.apple.com/downloads/ + https://developer.apple.com/downloads/ EOS else xcode_text = <<-EOS.undent or install Xcode from: - https://developer.apple.com/xcode/downloads/ + https://developer.apple.com/xcode/downloads/ EOS end