Michael Van Canneyt wrote:
On Fri, 27 May 2005, Vincent Snijders wrote:
Michael Van Canneyt wrote:
On Fri, 27 May 2005, Vincent Snijders wrote:
Hi,
I ran fpdoc generated html files through a html validator and it
didn't like the ISO8859-1 encoding. Attached patch changes
references to ISO8859-1 encoding to ISO-8859-1.
Thanks. Applied.
I also got errors like:
Error: element NOBR not defined in this HTML version
I don't know if and how this can be fixed.
It is an unofficial IE and Netscape extension to HTML 4.
It should not be used, but I don't see how that can be done.
What if we added to fpdoc.css
span.code {
white-space: nowrap
}
and in the html replaced
<nobr><span class="kw">const</span> ARG_MAX <span class="sym">=</span>
<span class="num">131072</span><span class="sym">;</span></nobr>
by
<td><p><tt><span class="code"><span class="kw">const</span> ARG_MAX
<span class="sym">=</span> <span class="num">131072</span><span
class="sym">;</span></span></tt></p></td>
It seems to work in firefox 1.0.4 and IE 6.0.
Great!
Can you make a patch for this ?
Certainly. Attached is one patch for fpdoc and one for the fpcdocs
repositry.
Vincent.
Index: fpdoc.cst
===================================================================
--- fpdoc.cst (revision 8)
+++ fpdoc.cst (working copy)
@@ -53,6 +53,11 @@
font-size: 12pt
}
+/* source fragments */
+span.code {
+ white-space: nowrap
+}
+
/* symbols in source fragments */
span.sym {
color: darkred
Index: utils/fpdoc/fpdoc.css
===================================================================
--- utils/fpdoc/fpdoc.css (revision 127)
+++ utils/fpdoc/fpdoc.css (working copy)
@@ -53,6 +53,11 @@
font-size: 12pt
}
+/* source fragments */
+span.code {
+ white-space: nowrap
+}
+
/* symbols in source fragments */
span.sym {
color: darkred
Index: utils/fpdoc/dw_html.pp
===================================================================
--- utils/fpdoc/dw_html.pp (revision 127)
+++ utils/fpdoc/dw_html.pp (working copy)
@@ -804,7 +804,8 @@
function THTMLWriter.CreateCode(Parent: TDOMNode): THTMLElement;
begin
- Result := CreateEl(CreateEl(Parent, 'tt'), 'nobr');
+ Result := CreateEl(CreateEl(Parent, 'tt'), 'span');
+ Result['class'] := 'code';
end;
function THTMLWriter.CreateWarning(Parent: TDOMNode): THTMLElement;
_______________________________________________
fpc-devel maillist - fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel