[Mono-list] patch
Johannes Roith
johannes@jroith.de
12 Jun 2003 18:31:11 +0200
--=-Z6c8Adkr0r2L9OfBEtEm
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
sorry, I have to update the patch.
:)
--=-Z6c8Adkr0r2L9OfBEtEm
Content-Disposition: attachment; filename=monodoc2.diff
Content-Type: text/x-patch; name=monodoc2.diff; charset=UTF-8
Content-Transfer-Encoding: 7bit
Index: monohb-provider.cs
===================================================================
RCS file: /cvs/public/monodoc/browser/monohb-provider.cs,v
retrieving revision 1.1
diff -u -r1.1 monohb-provider.cs
--- monohb-provider.cs 1 Jun 2003 15:26:45 -0000 1.1
+++ monohb-provider.cs 12 Jun 2003 16:33:39 -0000
@@ -23,6 +23,85 @@
node.RemoveAll();
}
}
+
+
+
+
+
+
+
+XmlNodeList nodeList2 = docToProcess.GetElementsByTagName("pre");
+foreach(XmlNode node in nodeList2)
+ {
+ string cssClass = ((XmlElement)node).GetAttribute("class");
+
+ if (cssClass != null)
+ {
+
+ switch(cssClass)
+ {
+
+ case "code":
+
+ node.InnerXml = "<table width='100%' border='0' cellspacing='0' cellpadding='3'><tr><td>" +
+ "<table width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'>" +
+ "<tr><td bgcolor='#c0c0c0'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "<td bgcolor='#c0c0c0'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "<td bgcolor='#c0c0c0'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "</tr><tr> <td bgcolor='#c0c0c0'> </td><td width='100%' bgcolor='#efefef'> " +
+ "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td bgcolor='#ffffff'>" +
+ "<table width='100%' border='0' cellspacing='0' cellpadding='2'><tr><td bgcolor='#efefef'>" +
+
+ node.InnerXml +
+
+ "</td></tr></table></td></tr></table></td><td bgcolor='#999999'><img src='images/shim.gif' width='1' height='1' /></td>" +
+ "</tr><tr> <td bgcolor='#c0c0c0'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "<td bgcolor='#c0c0c0'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "<td bgcolor='#c0c0c0'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "</tr></table></td></tr></table>";
+
+ break;
+ case "console":
+
+ node.InnerXml = "<table width='100%' border='0' cellspacing='0' cellpadding='3'><tr><td>" +
+ "<table width='100%' border='0' cellspacing='0' cellpadding='0' height='100%'>" +
+ "<tr><td bgcolor='#555555'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "<td bgcolor='#555555'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "<td bgcolor='#555555'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "</tr><tr> <td bgcolor='#c0c0c0'> </td><td width='100%' bgcolor='#efefef'> " +
+ "<table width='100%' border='0' cellspacing='0' cellpadding='0'><tr><td bgcolor='#ffffff'>" +
+ "<table width='100%' border='0' cellspacing='0' cellpadding='2'><tr><td bgcolor='#999999'>" +
+
+ node.InnerXml +
+
+ "</td></tr></table></td></tr></table></td><td bgcolor='#999999'><img src='images/shim.gif' width='1' height='1' /></td>" +
+ "</tr><tr> <td bgcolor='#555555'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "<td bgcolor='#555555'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "<td bgcolor='#555555'><img src='images/empty.png' width='1' height='1' /></td>" +
+ "</tr></table></td></tr></table>";
+ break;
+
+ default:
+ break;
+ }
+
+
+ }
+ }
+
+
+
+
+
+
+
+
+
+
+
+
+
+
return docToProcess;
}
}
--=-Z6c8Adkr0r2L9OfBEtEm--