<html>
<head>
<style><!--
body {background-color:#ffffff;}
.file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
.pathname {font-family:monospace; float:right;}
.fileheader {margin-bottom:.5em;}
.diff {margin:0;}
.tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
.tasklist ul {margin-top:0;margin-bottom:0;}
tr.alt {background-color:#eeeeee}
#added {background-color:#ddffdd;}
#addedchars {background-color:#99ff99;font-weight:bolder;}
tr.alt #added {background-color:#ccf7cc;}
#removed {background-color:#ffdddd;}
#removedchars {background-color:#ff9999;font-weight:bolder;}
tr.alt #removed {background-color:#f7cccc;}
#copied {background-color:#ccccff;}
tr.alt #copied {background-color:#bbbbf7;}
#info {color:#888888;}
#context {background-color:#eeeeee;}
td {padding-left:.3em;padding-right:.3em;}
tr.head {border-bottom-width:1px;border-bottom-style:solid;}
tr.head td {padding:0;padding-top:.2em;}
.task {background-color:#ffff00;}
.comment {white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd}
.error {color:red;}
hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="5">Commit in <b><tt>as2api/trunk/as2api/lib/output/html</tt></b></td></tr>
<tr><td><tt><a href="#file1">html_framework.rb</a></tt> </td><td></td><td align="right" id="added">+35</td><td align="right" id="removed">-12</td><td nowrap="nowrap" align="center">344 -> 345</td></tr>
</table>
<pre class="comment">
Try to take more care to avoid linking to types which aren't being documnted
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">as2api/trunk/as2api/lib/output/html</span><br />
<div class="fileheader"><big><b>html_framework.rb</b></big> <small id="info">344 -> 345</small></div>
<pre class="diff"><small id="info">--- trunk/as2api/lib/output/html/html_framework.rb        2006-03-29 21:55:29 UTC (rev 344)
+++ trunk/as2api/lib/output/html/html_framework.rb        2006-03-29 22:06:08 UTC (rev 345)
@@ -208,7 +208,11 @@
</small></pre><pre class="diff" id="context"> def link_next; end
def link_for_type(type)
</pre><pre class="diff" id="removed">- base_path(type.qualified_name.gsub(/\./, "/")+".html")
</pre><pre class="diff" id="added">+ if type.document?
+ base_path(type.qualified_name.gsub(/\./, "/")+".html")
+ else
+ nil
+ end
</pre><pre class="diff" id="context"> end
def link_type(type, qualified=false, attrs={})
</pre><pre class="diff"><small id="info">@@ -226,8 +230,9 @@
</small></pre><pre class="diff" id="context"> else
content = type.unqualified_name
end
</pre><pre class="diff" id="removed">- if type.document?
- attrs["href"] = link_for_type(type)
</pre><pre class="diff" id="added">+ href = link_for_type(type)
+ if href
+ attrs["href"] = href
</pre><pre class="diff" id="context"> html_a(content, attrs)
else
html_span(content, attrs)
</pre><pre class="diff"><small id="info">@@ -281,7 +286,12 @@
</small></pre><pre class="diff" id="context"> if @type == method.containing_type
"##{method.name}"
else
</pre><pre class="diff" id="removed">- "#{link_for_type(method.containing_type)}##{method.name}"
</pre><pre class="diff" id="added">+ type_href = link_for_type(method.containing_type)
+ if type_href
+        "#{type_href}##{method.name}"
+ else
+        nil
+ end
</pre><pre class="diff" id="context"> end
end
</pre><pre class="diff"><small id="info">@@ -320,7 +330,12 @@
</small></pre><pre class="diff" id="context"> if @type == field.containing_type
"##{field.name}"
else
</pre><pre class="diff" id="removed">- "#{link_for_type(field.containing_type)}##{field.name}"
</pre><pre class="diff" id="added">+ type_href = link_for_type(method.containing_type)
+ if type_href
+        "#{type_href}##{field.name}"
+ else
+        nil
+ end
</pre><pre class="diff" id="context"> end
end
</pre><pre class="diff"><small id="info">@@ -421,13 +436,21 @@
</small></pre><pre class="diff" id="context"> if inline.target && inline.member
if inline.target.resolved?
        href = link_for_type(inline.target.resolved_type)
</pre><pre class="diff" id="removed">- if inline.member =~ /\(/
- target = "##{$`}"
- else
- target = "##{inline.member}"
- end
-        href << target
-        html_a("href"=>href) do
</pre><pre class="diff" id="added">+        if href
+         if inline.member =~ /\(/
+         target = "##{$`}"
+         else
+         target = "##{inline.member}"
+         end
+         href << target
+         html_a("href"=>href) do
+         if inline.text && inline.text!=""
+         pcdata(inline.text)
+         else
+         pcdata("#{inline.target.name}.#{inline.member}")
+         end
+         end
+        else
</pre><pre class="diff" id="context">          if inline.text && inline.text!=""
         pcdata(inline.text)
         else
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.12</small></center>
</body></html>