diff --git a/lib/rdoc/ri/ri_options.rb b/lib/rdoc/ri/ri_options.rb index ca74884b9a..179ef96cea 100644 --- a/lib/rdoc/ri/ri_options.rb +++ b/lib/rdoc/ri/ri_options.rb @@ -62,11 +62,11 @@ module RI (RI::Paths::HOMEDIR || "No ~/.rdoc found") ], [ "--gems", nil, nil, - "Include documentation from RubyGems:\n " + + "Include documentation from RubyGems:\n" + (RI::Paths::GEMDIRS ? - Gem.path.map { |dir| "#{dir}/doc/*/ri" }.join("\n") : + Gem.path.map { |dir| " #{dir}/doc/*/ri" }.join("\n") : "No Rubygems ri found.") ], - + [ "--format", "-f", "", "Format to use when displaying output:\n" + " " + RI::TextFormatter.list + "\n" +