[fpc-devel] bug in fpdoc HTML output - double spacing

Graeme Geldenhuys graemeg.lists at gmail.com
Mon Nov 8 10:12:52 CET 2010


Op 2010-11-08 10:49, Michael Van Canneyt het geskryf:
> 
> If you look at the first website, the docs are generated march 6, 2010, not
> in 2009.

My reference to June 2009, is the last time I generate tiOPF docs on my server. The problem came to my attention when I recently wanted to update the tiOPF online help, but immediately noticed the doublespace issue.

  http://opensoft.homeip.net:8080/tiopf/core/index.html

> 
> If you have a look at the fpdoc.css (as I did now) then you'll see that the
> fpdoc.csse used on the FPC website is different from the one on the Lazarus site.


And here is the difference between the Official FPC Docs fpdoc.css and what I have locally. As you can see, my copy in near identical to the official fpc one, I simply define a specific font size. But as I said, even if I used the offcial fpdoc.css file, I still have double spacing. So again, the issue is _not_ related to the CSS file, but to the actual HTML generated. This is easily seen, by simply disabling CSS in your browser. With Firefox do the following  "View - Page Style - No Style"
Correct HTML shows no double spacing. Incorrect HTML (as I have here) shows double spacing (even with CSS disabled).

If it will help, I can put the "broken" tiOPF docs up on my server too, in a temp directory.

----------------------------------------------------
$ diff -u -w core/fpdoc.css gui/fpdoc.css 
--- core/fpdoc.css	2010-11-08 11:03:08.000000000 +0200
+++ gui/fpdoc.css	2009-05-28 09:26:29.000000000 +0200
@@ -1,5 +1,5 @@
 /*
-  $Id: fpdoc.css,v 1.4 2001/09/08 12:08:32 sg Exp $
+  $Id: fpdoc.css 7437 2005-07-28 16:02:24 +0200 (Thu, 28 Jul 2005) vincents $
 
   Default style sheet for FPDoc reference documentation
   by Sebastian Guenther, sg at freepascal.org
@@ -17,7 +17,11 @@
 }
 
 tt, span.kw, pre {
-  font-family: Courier, monospace
+  font-family: monospace, Courier
+}
+
+body, p, th, td, caption, ul, ol, dl, tt, span.kw, pre {
+  font-size: 14px
 }
 
 A:link {
----------------------------------------------------



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net:8080/fpgui/




More information about the fpc-devel mailing list