[ruby/rdoc] Section may not have label

https://github.com/ruby/rdoc/commit/945f0cb3e9
This commit is contained in:
Nobuyoshi Nakada 2023-05-02 14:09:21 +09:00 committed by git
parent 3833d0fee6
commit e47aa27dc7

View File

@ -36,7 +36,8 @@
unless table.empty? then %>
<ul>
<%- table.each do |item| -%>
<li><a href="<%= klass.path %>#<%= item.label(klass) %>"><%= item.plain_html %></a>
<%- label = item.respond_to?(:label) ? item.label(klass) : item.aref -%>
<li><a href="<%= klass.path %>#<%= label %>"><%= item.plain_html %></a>
<%- end -%>
</ul>
<%- end -%>