<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;}
  #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 {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="4">Commit in <b><tt>trunk/as2api</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">html_output.rb</a></tt></td><td align="right" id="added">+22</td><td align="right" id="removed">-2</td><td nowrap="nowrap" align="center"><a href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api/html_output.rb?rev=218&amp;content-type=text/vnd.viewcvs-markup">218</a> <a href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api/html_output.rb.diff?r1=218&amp;r2=219">-&gt;</a> <a href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api/html_output.rb?rev=219&amp;content-type=text/vnd.viewcvs-markup">219</a></td></tr>
</table>
<pre class="comment">
Improve formatting on index page
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname"><a
href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk">trunk</a>/<a
href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api">as2api</a></span><br />
<div class="fileheader"><big><b>html_output.rb</b></big> <small id="info"><a href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api/html_output.rb?rev=218&amp;content-type=text/vnd.viewcvs-markup">218</a> <a href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api/html_output.rb.diff?r1=218&amp;r2=219">-&gt;</a> <a href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api/html_output.rb?rev=219&amp;content-type=text/vnd.viewcvs-markup">219</a></small></div>
<pre class="diff"><small id="info">--- trunk/as2api/html_output.rb        2005-08-07 16:38:28 UTC (rev 218)
+++ trunk/as2api/html_output.rb        2005-08-07 17:31:31 UTC (rev 219)
@@ -3,6 +3,7 @@
</small></pre><pre class="diff" id="context"> require 'xhtmlwriter'
 require 'doc_comment'
 require 'rexml/document'
</pre><pre class="diff" id="added">+require 'set'
</pre><pre class="diff" id="context"> 
 def stylesheet(output_dir)
   name = "style.css"
</pre><pre class="diff"><small id="info">@@ -1670,33 +1671,52 @@
</small></pre><pre class="diff" id="context"> 
   def create_index()
     index = []
</pre><pre class="diff" id="added">+    initials = Set.new
</pre><pre class="diff" id="context">     # TODO: include packages
     @type_agregator.each_type do |astype|
       if astype.document?
         index &lt;&lt; TypeIndexTerm.new(astype)
</pre><pre class="diff" id="added">+        initials &lt;&lt; astype.unqualified_name.upcase[0]
</pre><pre class="diff" id="context">         astype.each_method do |asmethod|
           if document_member?(asmethod)
             index &lt;&lt; MethodIndexTerm.new(astype, asmethod)
</pre><pre class="diff" id="added">+            initials &lt;&lt; asmethod.name.upcase[0]
</pre><pre class="diff" id="context">           end
         end
         if astype.is_a?(ASClass)
           astype.each_field do |asfield|
             if document_member?(asfield)
               index &lt;&lt; FieldIndexTerm.new(astype, asfield)
</pre><pre class="diff" id="added">+              initials &lt;&lt; asfield.name.upcase[0]
</pre><pre class="diff" id="context">             end
           end
         end
       end
     end
 
</pre><pre class="diff" id="removed">-    index.sort!
</pre><pre class="diff" id="added">+    [index.sort!, initials]
</pre><pre class="diff" id="context">   end
 
   def generate_body_content
</pre><pre class="diff" id="removed">-    index = create_index()
</pre><pre class="diff" id="added">+    index<span id="addedchars">,&nbsp;initials</span> = create_index()
</pre><pre class="diff" id="context"> 
</pre><pre class="diff" id="added">+    html_p do
+      initials.to_a.sort.each do |initial|
+        i = initial.chr
+        html_a(i, {"href"=&gt;"##{i}"})
+        pcdata(" ")
+      end
+    end
+
+    last_initial = nil
</pre><pre class="diff" id="context">     index.each do |element|
       html_p do
</pre><pre class="diff" id="added">+        initial = element.term.upcase[0]
+        if initial != last_initial
+          html_a("", {"name"=&gt;initial.chr})
+          html_h2(initial.chr)
+          last_initial = initial
+        end
</pre><pre class="diff" id="context">         element.link(self)
       end
     end
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -&gt; email">CVSspam</a> 0.2.11</small></center>
</body></html>