HTML output of ocamldoc is strange #7411
Original bug ID: 7411
If I have a file with the following contents:
module IntSet = Set.Make(struct
and I use ocamldoc to generate HTML:
ocamldoc -html main.ml
then the resulting HTML contains some unexpected:
I am (just) guessing that this is not an expected behavior.
Comment author: @Octachron
In this case, the html generated by ocamldoc uses a "pre" tag for the module(sig ...end) part and is not careful enough with whitespace, resulting with this anarchic proliferation of whitespaces.
Since the "pre" tag is not that meaningful here, I would argue that simply closing it at the start of the signature would be enough.