summaryrefslogtreecommitdiffstats
path: root/lib/rdoc
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-04 23:19:58 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-04-04 23:19:58 +0000
commit2a2cac609d2bd18a54be6d66ef7987cfa6c7b2a8 (patch)
tree73a7e77851abe0eb753b9be0596fa248da01db3c /lib/rdoc
parente9939c69b124d9a70bb02b21fdd37a7a55d6d202 (diff)
downloadruby-2a2cac609d2bd18a54be6d66ef7987cfa6c7b2a8.tar.gz
ruby-2a2cac609d2bd18a54be6d66ef7987cfa6c7b2a8.tar.xz
ruby-2a2cac609d2bd18a54be6d66ef7987cfa6c7b2a8.zip
Remove leading ./ from filenames so that cross references work OK
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@6088 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/generators/html_generator.rb2
-rw-r--r--lib/rdoc/rdoc.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rdoc/generators/html_generator.rb b/lib/rdoc/generators/html_generator.rb
index ca3019f5c..75b056b8b 100644
--- a/lib/rdoc/generators/html_generator.rb
+++ b/lib/rdoc/generators/html_generator.rb
@@ -61,7 +61,7 @@ module Generators
class AllReferences
@@refs = {}
-
+
def AllReferences::reset
@@refs = {}
end
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index d55a40466..060e9ba82 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -166,7 +166,7 @@ module RDoc
next if options.exclude && options.exclude =~ rel_file_name
case type = File.stat(rel_file_name).ftype
when "file"
- file_list << rel_file_name if force_doc || ParserFactory.can_parse(rel_file_name)
+ file_list << rel_file_name.sub(/^\.\//, '') if force_doc || ParserFactory.can_parse(rel_file_name)
when "directory"
next if rel_file_name == "CVS" || rel_file_name == ".svn"
dot_doc = File.join(rel_file_name, DOT_DOC_FILENAME)