olddoc user/dev discussion/patches/bugs/etc
 help / color / mirror / code / Atom feed
* [PATCH] class.rhtml: ensure space before "source" link
@ 2015-01-10  3:23 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2015-01-10  3:23 UTC (permalink / raw)
  To: olddoc-public

Otherwise it gets bunched into the parameters for pure-Ruby methods
---
 lib/oldweb/class.rhtml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/oldweb/class.rhtml b/lib/oldweb/class.rhtml
index 107ce41..acf4bd7 100644
--- a/lib/oldweb/class.rhtml
+++ b/lib/oldweb/class.rhtml
@@ -39,10 +39,10 @@ id="<%= visibility %>-<%= type %>-<%= section.aref %>-method-details">
 <%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</h3><%
       methods.each do |method|
       %><pre id="<%= method.aref %>"><b><%
-        if method.call_seq %><%= h method.call_seq %><%
+        if method.call_seq %><%= h method.call_seq.strip %><%
         else
-          %><%= h method.name %> <%= h method.param_seq %><%
-        end %></b><%= method_srclink(method) %></pre><%=
+          %><%= h method.name %> <%= h method.param_seq.strip %><%
+        end %></b> <%= method_srclink(method) %></pre><%=
           method.comment ? method.description.strip : nd %><%
         if method.calls_super %>Calls superclass method<%=
            method.superclass_method ?
-- 
EW

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-01-10  3:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-10  3:23 [PATCH] class.rhtml: ensure space before "source" link Eric Wong

Code repositories for project(s) associated with this public inbox

	https://80x24.org/olddoc.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).