lib/rdoc/generator/template/sdoc/_context.rhtml in sdoc-0.4.1 vs lib/rdoc/generator/template/sdoc/_context.rhtml in sdoc-0.4.2
- old
+ new
@@ -148,23 +148,23 @@
<div class="sectiontitle"><%= type.capitalize %> <%= visibility.to_s.capitalize %> methods</div>
<% methods.each do |method| %>
<div class="method">
<div class="title method-title" id="<%= method.aref %>">
<% if method.call_seq %>
- <b><%= method.call_seq.gsub(/->/, '→') %></b>
+ <b><%= method.call_seq.gsub(/->/, '→').gsub(/\n(.)/, '<br />\1') %></b>
<% else %>
<b><%= h method.name %></b><%= h method.params %>
<% end %>
<a href="<%= "#{rel_prefix}/#{context.path}##{method.aref}"%>" name="<%= method.aref %>" class="permalink">Link</a>
</div>
-
+
<% if method.comment %>
<div class="description">
<%= method.description.strip %>
</div>
<% end %>
-
+
<% unless method.aliases.empty? %>
<div class="aka">
Also aliased as: <%= method.aliases.map do |aka|
if aka.parent then # HACK lib/rexml/encodings
%{<a href="#{context.aref_to aka.path}">#{h aka.name}</a>}
@@ -178,11 +178,11 @@
<% if method.is_alias_for then %>
<div class="aka">
Alias for: <a href="<%= context.aref_to method.is_alias_for.path %>"><%= h method.is_alias_for.name %></a>
</div>
<% end %>
-
+
<% if method.token_stream %>
<% markup = method.sdoc_markup_code %>
<div class="sourcecode">
<%
# generate github link
@@ -195,10 +195,10 @@
else
false
end
%>
<p class="source-link">
- Source:
+ Source:
<a href="javascript:toggleSource('<%= method.aref %>_source')" id="l_<%= method.aref %>_source">show</a>
<% if github %>
| <a href="<%= "#{github}#L#{line}" %>" target="_blank" class="github_url">on GitHub</a>
<% end %>
</p>