From db7997e1a0acde9f11ee9ae0b91833f493eff2ef Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Mon, 11 Feb 2019 01:02:31 -0600 Subject: [PATCH 1/2] exceptions.rb: move alternative solution to a new line --- Library/Homebrew/exceptions.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 5358065c59..782ba830be 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -471,7 +471,7 @@ class BuildFlagsError < RuntimeError EOS message << <<~EOS.chomp! if bottled - Alternatively, remove the #{flag_text} to attempt bottle installation. + \nAlternatively, remove the #{flag_text} to attempt bottle installation. EOS super message From c44c8da5e0becf02ef6d6180fadb8efa8df69714 Mon Sep 17 00:00:00 2001 From: Maxim Belkin Date: Mon, 11 Feb 2019 05:27:22 -0600 Subject: [PATCH 2/2] exceptions.rb: remove unnecessary chomps remove `chomp!` from method 'initialize' in class 'BuildFlagsError' --- Library/Homebrew/exceptions.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index 782ba830be..183551578c 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -463,15 +463,15 @@ class BuildFlagsError < RuntimeError require_text = "requires" end - message = <<~EOS.chomp! + message = <<~EOS The following #{flag_text}: #{flags.join(", ")} #{require_text} building tools, but none are installed. #{DevelopmentTools.installation_instructions} EOS - message << <<~EOS.chomp! if bottled - \nAlternatively, remove the #{flag_text} to attempt bottle installation. + message << <<~EOS if bottled + Alternatively, remove the #{flag_text} to attempt bottle installation. EOS super message