[ruby/rdoc] Section may not have label
https://github.com/ruby/rdoc/commit/945f0cb3e9
This commit is contained in:
parent
3833d0fee6
commit
e47aa27dc7
@ -36,8 +36,9 @@
|
|||||||
unless table.empty? then %>
|
unless table.empty? then %>
|
||||||
<ul>
|
<ul>
|
||||||
<%- table.each do |item| -%>
|
<%- 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 -%>
|
||||||
<%- end -%>
|
<li><a href="<%= klass.path %>#<%= label %>"><%= item.plain_html %></a>
|
||||||
|
<%- end -%>
|
||||||
</ul>
|
</ul>
|
||||||
<%- end -%>
|
<%- end -%>
|
||||||
</li>
|
</li>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user