From fca07369ab5c81d3abaa77841b9403a73efa2f78 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Tue, 20 Dec 2011 20:11:54 -0800 Subject: Omit empty caveats --- Library/Homebrew/cmd/info.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') diff --git a/Library/Homebrew/cmd/info.rb b/Library/Homebrew/cmd/info.rb index 72348fc5c..5872f8834 100644 --- a/Library/Homebrew/cmd/info.rb +++ b/Library/Homebrew/cmd/info.rb @@ -70,7 +70,8 @@ module Homebrew extend self end end - if f.caveats + the_caveats = (f.caveats || "").strip + unless the_caveats.empty? puts puts f.caveats puts -- cgit v1.2.3