From eb05f4f64362653690fffb25b9fda5e1e2fab8d4 Mon Sep 17 00:00:00 2001 From: Anton Bachin Date: Sat, 16 Dec 2017 14:27:22 -0600 Subject: [PATCH] Place module list on its own line The markup emitted by Jbuilder treated module lists as inline elements that can appear inside a line. However, neither ocamldoc nor odoc render module lists as inline elements. They are instead block elements, that are laid out vertically, like lists or paragraphs. Correspondingly, odoc now rejects inline module list markup. A side effect of the (rejected) misconception is that there was a stray period appearing on its own line in every module list generated by Jbuilder. This is now fixed. --- src/odoc.ml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/odoc.ml b/src/odoc.ml index c26d7eb4..abff2e3e 100644 --- a/src/odoc.ml +++ b/src/odoc.ml @@ -84,7 +84,7 @@ let lib_index sctx ~odoc ~dir ~(lib : Library.t) ~lib_public_name ~doc_dir ~modu sprintf "%s\n\ {2 Library %s}\n\ - This library exposes the following toplevel modules: {!modules:%s}." + This library exposes the following toplevel modules:\n{!modules:%s}" header lib_public_name (String_map.keys modules |> String.concat ~sep:" "))))