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

Michael Van Canneyt michael at freepascal.org
Mon Nov 8 10:48:16 CET 2010



On Mon, 8 Nov 2010, Graeme Geldenhuys wrote:

> Op 2010-11-08 11:31, Amat Coder het geskryf:
>>
>> You can do that:
>> Edit html and delete "http://www.w3.org/TR/html4/loose.dtd" from first line
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd">
>>
>> and even if you don't use any css you can see that no double spacing.
>>
>> This is because 'dtd'  forces some elements if they are not defined...
>
>
> This was indeed the cause of the problem.
> I don't know HTML well enough to know what all the stuff in DTD files mean
> or do, but I gather having it listed in the generated HTML is important?

It gets only really interesting when you start comparing how browsers react
on this DTD reference. In theory, they should react the same. Practice shows
different...

Michael.




More information about the fpc-devel mailing list