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

Michael Van Canneyt michael at freepascal.org
Mon Nov 8 10:03:26 CET 2010



On Mon, 8 Nov 2010, Graeme Geldenhuys wrote:

> Op 2010-11-08 10:43, Amat Coder het geskryf:
>>
>> td p {
>> margin: 0;
>> }
>
>
> The official FPC docs fpdoc.css doesn't have that in the css file, yet it
> outputs correctly.
>
>   http://www.freepascal.org/docs-html/rtl/fpdoc.css

That's because there are some other things different as well if you look
carefully.

> It is easy to "force" a fix via a CSS file, but clearly there is a HTML
> generation problem/difference since June 2009. Even the plain HTML output
> (without a css file) is different between now and a year ago.

How so ?

Below is a diff of the lazarus and fpc HTML pages. 
With the exception of some header and an extra unit, the
geneated HTML code is the same. The footer is added by sourceforge.

Like I said, the HTML generation algorithm has not changed. 
The css has, and this causes your problem. If you use the 
official fpdoc.css from FPC, the problem will go away.

Michael.

-------------------------------------------------------------------

1c1
< <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
---
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
210a211,215
> <td valign="top"><p><tt><span class="code"><a
> href="types/index.html">types</a></span></tt></p></td>
> <td><p>  </p></td>
> <td><p class="cmt">Various types</p></td>
> </tr>
> <tr>
252,254c257,261
< <hr>
< 
< <span class="footer">Documentation generated on: Mar 06 2010</span> 
--- 
> <table class="bar" width="100%" cellpadding="0" cellspacing="0"> 
> <tr> 
> <td align="center" valign="top"><span class="footer">This page is hosted
> on </span><a href="http://sourceforge.net/projects/lazarus-ccr"><img
> alt="Get Lazarus Code and Component Repository at SourceForge.net. Fast,
> secure and Free Open Source software downloads"
> src="http://sflogo.sourceforge.net/sflogo.php?group_id=92177&type=9"
> width="80" height="15"></a></td>
> </tr>
> </table>





More information about the fpc-devel mailing list