You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
OCamldoc rendering in OCaml 5 worse than OCaml 4 #13896
There is a padding problem in the css in your examples, but as far as I can see the html structure on the indexes did not change between OCaml 4.14 and OCaml 5.x. Could you link the generated html of your examples?
I see what is happening: the style change is due to the <!DOCTYPE html> header.
Without this header browsers are using the quirky rendering mode, rather than correct html rendering.
The right fix is probably to update the default css to remove the padding around first paragraphs in tables.
Activity
Octachron commentedon Mar 26, 2025
There is a padding problem in the css in your examples, but as far as I can see the html structure on the indexes did not change between OCaml 4.14 and OCaml 5.x. Could you link the generated html of your examples?
johnwhitington commentedon Mar 26, 2025
The style.css has not changed. But index.html has:
No idea why that should change anything, but it does. I checked in Chrome too (screenshots above are Safari). Same result.
Here's the full data:
camlpdf_docs.zip
Octachron commentedon Mar 26, 2025
I see what is happening: the style change is due to the
<!DOCTYPE html>header.Without this header browsers are using the quirky rendering mode, rather than correct html rendering.
The right fix is probably to update the default css to remove the padding around first paragraphs in tables.
ocamldoc: no paragraph in module table
Octachron commentedon Jun 20, 2025
This will be fixed in 5.4, thanks against for the report !
ocamldoc: no paragraph in module table (ocaml#14098)
ocamldoc: no paragraph in module table (#14098)