[as2api-dev] [CVS trunk] <caption> is more apt markup than <th> in these cases
David Holroyd
dave at badgers-in-foil.co.uk
Sat, 02 Jul 2005 16:26:11 +0000
<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">+11</td><td align="right" id="removed">-15</td><td nowrap="nowrap" align="center"><a href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api/html_output.rb?rev=169&content-type=text/vnd.viewcvs-markup">169</a> <a href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api/html_output.rb.diff?r1=169&r2=170">-></a> <a href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api/html_output.rb?rev=170&content-type=text/vnd.viewcvs-markup">170</a></td></tr>
</table>
<pre class="comment">
<caption> is more apt markup than <th> in these cases
</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=169&content-type=text/vnd.viewcvs-markup">169</a> <a href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api/html_output.rb.diff?r1=169&r2=170">-></a> <a href="http://svn.badgers-in-foil.co.uk/viewcvs.cgi/as2api/trunk/as2api/html_output.rb?rev=170&content-type=text/vnd.viewcvs-markup">170</a></small></div>
<pre class="diff"><small id="info">--- trunk/as2api/html_output.rb 2005-07-02 16:13:47 UTC (rev 169)
+++ trunk/as2api/html_output.rb 2005-07-02 16:26:10 UTC (rev 170)
@@ -12,7 +12,7 @@
</small></pre><pre class="diff" id="context">
write_file(output_dir, name) do |out|
out.print <<-HERE
</pre><pre class="diff" id="removed">-h1, h2, h3, h4 th {
</pre><pre class="diff" id="added">+h1, h2, h3, h4, caption {
</pre><pre class="diff" id="context"> font-family: sans-serif;
}
</pre><pre class="diff"><small id="info">@@ -76,14 +76,16 @@
</small></pre><pre class="diff" id="context"> width: 100%;
margin-bottom: 1em;
}
</pre><pre class="diff" id="removed">-table.summary_list th {
- background-color: #CCCCFF;
- font-size: larger;
-}
-table.summary_list td, table.summary_list th {
</pre><pre class="diff" id="added">+table.summary_list td, table.summary_list caption {
</pre><pre class="diff" id="context"> border: 2px solid grey;
padding: .2em;
}
</pre><pre class="diff" id="added">+table.summary_list caption {
+ background-color: #CCCCFF;
+ border-bottom: 0;
+ font-size: larger;
+ font-weight: bolder;
+}
</pre><pre class="diff" id="context"> ul.navigation_list {
padding-left: 0;
}
</pre><pre class="diff"><small id="info">@@ -1050,9 +1052,7 @@
</small></pre><pre class="diff" id="context"> unless interfaces.empty?
interfaces.sort!
html_table("class"=>"summary_list", "summary"=>"") do
</pre><pre class="diff" id="removed">- html_tr do
- html_th("Interface Summary", {"colspan"=>"2"})
- end
</pre><pre class="diff" id="added">+ html_caption("Interface Summary")
</pre><pre class="diff" id="context"> interfaces.each do |type|
html_tr do
</pre><pre class="diff"><small id="info">@@ -1072,9 +1072,7 @@
</small></pre><pre class="diff" id="context"> unless classes.empty?
classes.sort!
html_table("class"=>"summary_list", "summary"=>"") do
</pre><pre class="diff" id="removed">- html_tr do
- html_th("Class Summary", {"colspan", "2"})
- end
</pre><pre class="diff" id="added">+ html_caption("Class Summary")
</pre><pre class="diff" id="context"> classes.each do |type|
html_tr do
</pre><pre class="diff"><small id="info">@@ -1316,9 +1314,7 @@
</small></pre><pre class="diff" id="context"> def generate_body_content
html_h1("API Overview")
html_table("class"=>"summary_list", "summary"=>"") do
</pre><pre class="diff" id="removed">- html_tr do
- html_th("Packages")
- end
</pre><pre class="diff" id="added">+ html_caption("Packages")
</pre><pre class="diff" id="context"> packages = @type_agregator.packages.sort
packages.each do |package|
html_tr do
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.11</small></center>
</body></html>