[Mono-docs-list] spacing of tables in monodoc

John Luke jluke@users.sourceforge.net
Wed, 01 Oct 2003 14:52:49 -0400


This is a multi-part message in MIME format.
--------------040008030103070902050202
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hello,

Here is a small patch that does the following:
+    * mono-ecma.xsl: use cellpadding in example, and top table
+    * ecmaspec-html.xsl: use cellpadding, render examples like ecma-docs
+    * provider.cs: make /root: look more like other pages (table w/ 
bgcolor)

Feel free to apply if I'm not around before release if you want.

--------------040008030103070902050202
Content-Type: text/plain;
 name="spacing.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="spacing.diff"

Index: ChangeLog
===================================================================
RCS file: /cvs/public/monodoc/browser/ChangeLog,v
retrieving revision 1.90
diff -u -r1.90 ChangeLog
--- ChangeLog	30 Sep 2003 03:18:32 -0000	1.90
+++ ChangeLog	1 Oct 2003 08:45:41 -0000
@@ -1,3 +1,9 @@
+2003-10-01  John Luke  <jluke@cfl.rr.com>
+
+	* mono-ecma.xsl: use cellpadding in example, and top table
+	* ecmaspec-html.xsl: use cellpadding, render examples like ecma-docs
+	* provider.cs: make /root: look more like other pages (table w/ bgcolor)
+
 2003-09-23  Miguel de Icaza  <miguel@ximian.com>
 
 	* list.cs: Replace massive ellipsises array with hashtable, which
@@ -14,7 +20,6 @@
 	on/off via gui. (most of the credit goes to jluke).
 	* browser.cs, editing.cs: merge changes to multiple dirs.
 
->>>>>>> 1.89
 2003-09-12  John Luke  <jluke@cfl.rr.com>
 	
 	* browser.cs: add IsEditable property, OnEditingActivated and
Index: ecmaspec-html.xsl
===================================================================
RCS file: /cvs/public/monodoc/browser/ecmaspec-html.xsl,v
retrieving revision 1.1
diff -u -r1.1 ecmaspec-html.xsl
--- ecmaspec-html.xsl	31 Aug 2003 16:28:52 -0000	1.1
+++ ecmaspec-html.xsl	1 Oct 2003 08:45:41 -0000
@@ -2,7 +2,7 @@
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
 
 <xsl:template match="/clause">
-	<table width="100%">
+	<table width="100%" cellpadding="5">
 		<tr bgcolor="#b0c4de"><td>
 		<i>ECMA-334 C# Language Specification</i>
 
@@ -40,9 +40,15 @@
 </xsl:template>
 
 <xsl:template match="code_example">
-	<pre>
-		<xsl:apply-templates />
-	</pre>
+  <table bgcolor="#f5f5dd" border="1" cellpadding="5">
+	<tr>
+	  <td>
+	    <pre>
+		  <xsl:apply-templates />
+	    </pre>
+	  </td>
+	</tr>
+  </table>
 </xsl:template>
 
 <xsl:template match="symbol">
@@ -82,4 +88,4 @@
 	</xsl:copy>
 </xsl:template>
 
-</xsl:stylesheet>
\ No newline at end of file
+</xsl:stylesheet>
Index: mono-ecma.xsl
===================================================================
RCS file: /cvs/public/monodoc/browser/mono-ecma.xsl,v
retrieving revision 1.25
diff -u -r1.25 mono-ecma.xsl
--- mono-ecma.xsl	6 Sep 2003 00:42:29 -0000	1.25
+++ mono-ecma.xsl	1 Oct 2003 08:45:41 -0000
@@ -30,7 +30,7 @@
 
 		<!-- HEADER -->
 
-		<table width="100%">
+		<table width="100%" cellpadding="5">
 			<tr bgcolor="#b0c4de"><td>
 			<i>Mono Class Library</i>
 
@@ -1046,7 +1046,7 @@
 	</xsl:template>
 	
 	<xsl:template match="code">
-		<table bgcolor="#f5f5dd" border="1">
+		<table bgcolor="#f5f5dd" border="1" cellpadding="5">
 		<tr><td><b><font size="-1"><xsl:value-of select="@lang"/> Example</font></b></td></tr>
 		<tr><td><font size="-1"><pre>
 			<xsl:apply-templates/>	
Index: provider.cs
===================================================================
RCS file: /cvs/public/monodoc/browser/provider.cs,v
retrieving revision 1.55
diff -u -r1.55 provider.cs
--- provider.cs	7 Sep 2003 16:36:45 -0000	1.55
+++ provider.cs	1 Oct 2003 08:45:41 -0000
@@ -983,11 +983,12 @@
 		lastHelpSourceTime = DateTime.MinValue;
 		if (url == "root:") {
 			match_node = this;
-			StringBuilder sb = new StringBuilder ("<h1>Welcome to Monodoc</h1>");
+			StringBuilder sb = new StringBuilder ("<table bgcolor=\"#b0c4de\" width=\"100%\" cellpadding=\"5\"><tr><td><h3>Mono Documentation Library</h3></td></tr></table>");
+			
 			foreach (Node n in Nodes)
 				sb.AppendFormat ("<a href='{0}'>{1}</a><br/>", n.Element, n.Caption);
-			return sb.ToString ();
 			
+			return sb.ToString ();	
 		} 
 		
 		if (url.StartsWith ("root:")) {

--------------040008030103070902050202--