diff options
author | Nobuyoshi Nakada <[email protected]> | 2023-05-02 13:10:43 +0900 |
---|---|---|
committer | git <[email protected]> | 2023-05-02 04:19:46 +0000 |
commit | 3833d0fee6e7c8747a153d0f3e31405b16ae57e3 (patch) | |
tree | fcc5e98108467517cf68df20da2b25f0e41f67fa /lib/rdoc | |
parent | 83a822f70f9c868500a4a6b16e49adf43a653edb (diff) |
[ruby/rdoc] Fix references to nested label in table_of_contents
Fixes https://github.com/ruby/rdoc/pull/1000
https://github.com/ruby/rdoc/commit/291e2b7e8b
Diffstat (limited to 'lib/rdoc')
-rw-r--r-- | lib/rdoc/generator/template/darkfish/table_of_contents.rhtml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml b/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml index 941ff9d630..09b5379fc0 100644 --- a/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml +++ b/lib/rdoc/generator/template/darkfish/table_of_contents.rhtml @@ -36,7 +36,7 @@ unless table.empty? then %> <ul> <%- table.each do |item| -%> - <li><a href="<%= klass.path %>#<%= item.aref %>"><%= item.plain_html %></a> + <li><a href="<%= klass.path %>#<%= item.label(klass) %>"><%= item.plain_html %></a> <%- end -%> </ul> <%- end -%> |