Skip to content

Commit 0837c66

Browse files
committed
[Aliki] Fix html for method source code not created if a method's description is skipped
1 parent 71844a2 commit 0837c66

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lib/rdoc/generator/template/aliki/class.rhtml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,15 +156,13 @@
156156
<summary>Source</summary>
157157
</details>
158158
</div>
159+
<div class="method-source-code" id="<%= method.html_name %>-source">
160+
<pre class="<%= method.source_language %>" data-language="<%= method.source_language %>"><%= method.markup_code %></pre>
161+
</div>
159162
<%- end %>
160163

161164
<%- unless method.skip_description? then %>
162165
<div class="method-description">
163-
<%- if method.token_stream then %>
164-
<div class="method-source-code" id="<%= method.html_name %>-source">
165-
<pre class="<%= method.source_language %>" data-language="<%= method.source_language %>"><%= method.markup_code %></pre>
166-
</div>
167-
<%- end %>
168166
<%- if method.mixin_from then %>
169167
<div class="mixin-from">
170168
<%= method.singleton ? "Extended" : "Included" %> from <a href="<%= klass.aref_to(method.mixin_from.path) %>"><%= method.mixin_from.full_name %></a>

0 commit comments

Comments
 (0)