Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Wrong Latex output for variant types #7488
Original bug ID: 7488
Consider the following type declaration in a .mli file:
type t =
ocamldoc -latex produces:
Notice that "| A" and "| B" are outside the ocamldoccode environment, causing LaTeX to render them incorrectly.
(Edited from original report) The problem doesn't happen consistently. For example, running ocamldoc on unix.mli from the 4.05 working sources, the "process_status" type is correctly formatted.
There are many instances of this problem in the PDF manual for the working sources (4.05-dev), so if it could be solved by the 4.05 release this would be great.