From f29ff0945d24d982de05542d0d32f43bbb1aa597 Mon Sep 17 00:00:00 2001 From: Anton Bachin Date: Tue, 27 Mar 2018 22:57:43 -0500 Subject: [PATCH] Place module list on its own line (take 2) See eb05f4f64362653690fffb25b9fda5e1e2fab8d4 and https://github.com/ocaml/dune/pull/367#issuecomment-352209790. --- src/odoc.ml | 4 ++-- test/blackbox-tests/test-cases/odoc/run.t | 6 ++++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/odoc.ml b/src/odoc.ml index 08f95004..f3de11c4 100644 --- a/src/odoc.ml +++ b/src/odoc.ml @@ -411,8 +411,8 @@ module Gen (S : sig val sctx : SC.t end) = struct Buffer.add_string b ( sprintf "{1 Library %s}\n\ - This library exposes the following toplevel modules: \ - {!modules:%s}.\n" + This library exposes the following toplevel modules:\n\ + {!modules:%s}\n" (Lib.name lib) (modules |> List.sort ~compare:(fun x y -> diff --git a/test/blackbox-tests/test-cases/odoc/run.t b/test/blackbox-tests/test-cases/odoc/run.t index ef7ee3f0..b75c058e 100644 --- a/test/blackbox-tests/test-cases/odoc/run.t +++ b/test/blackbox-tests/test-cases/odoc/run.t @@ -34,6 +34,8 @@ $ $JBUILDER build @foo-mld -j1 --display short --root . {1 Library foo} - This library exposes the following toplevel modules: {!modules:Foo}. + This library exposes the following toplevel modules: + {!modules:Foo} {1 Library foo.byte} - This library exposes the following toplevel modules: {!modules:Foo_byte}. + This library exposes the following toplevel modules: + {!modules:Foo_byte}