summaryrefslogtreecommitdiff
path: root/lib/rdoc
diff options
context:
space:
mode:
authordave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-10 12:46:18 +0000
committerdave <dave@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-05-10 12:46:18 +0000
commit7b8641ce8858720ce8b1f4a46ef0204913832187 (patch)
tree2ab16a42552b195a919d8fe934dccaa55dacdc0c /lib/rdoc
parentc0639a7d3f5506a376cf00fe1ad9f02ee12a9a3b (diff)
Change symbol lookup scheme in HTML generation
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@6289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/generators/html_generator.rb16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/rdoc/generators/html_generator.rb b/lib/rdoc/generators/html_generator.rb
index ba1a512b16..ef08951063 100644
--- a/lib/rdoc/generators/html_generator.rb
+++ b/lib/rdoc/generators/html_generator.rb
@@ -380,10 +380,18 @@ module Generators
res = []
array.each do |i|
ref = AllReferences[i.name]
- if !ref && @context.parent
- name = @context.parent.name + "::" + i.name
- ref = AllReferences[name]
- end
+# if !ref
+# container = @context.parent
+# while !ref && container
+# name = container.name + "::" + i.name
+# ref = AllReferences[name]
+# container = container.parent
+# end
+# end
+
+ ref = @context.find_symbol(i.name)
+ ref = ref.viewer if ref
+
if !ref && block_given?
possibles = yield(i.name)
while !ref and !possibles.empty?