html.HtmlWindow gives to large paragraph spacing ...

hello,

does anyone knows how set the paragraph spacing for html.HtmlWindow to the correct value.
As far as I can see, the spacing now is an extra empty line, but it should be zero.

thanks,
Stef Mientki

Stef Mientki wrote:

hello,

does anyone knows how set the paragraph spacing for html.HtmlWindow to the correct value.
As far as I can see, the spacing now is an extra empty line, but it should be zero.

There isn't any way to set it from the public API that I can see, but what makes you think that there should be zero space between paragraphs? Yes, in a real browser that can be controlled via CSS, but wxHTML doesn't support CSS so it usually follows the default behaviors of raw HTML tags. IIUC that means that there will be some space between paragraphs.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!

Robin Dunn wrote:

Stef Mientki wrote:

hello,

does anyone knows how set the paragraph spacing for html.HtmlWindow to the correct value.
As far as I can see, the spacing now is an extra empty line, but it should be zero.

There isn't any way to set it from the public API that I can see, but what makes you think that there should be zero space between paragraphs? Yes, in a real browser that can be controlled via CSS, but wxHTML doesn't support CSS so it usually follows the default behaviors of raw HTML tags. IIUC that means that there will be some space between paragraphs.

thanks Robin,
you gave me the right hint.
These files are indeed controlled via CSS.
I made a little wrapper that converts (my) CSS controlled pages to old fashioned html pages
(because I want to be multi=platform, on Linux I susbstitute HtmlWindow for IEwin )
Replacing paragraph tags by <br> seems to solve the problem.

cheers,
Stef