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}