Place module list on its own line (take 2)

See eb05f4f643 and
https://github.com/ocaml/dune/pull/367#issuecomment-352209790.
This commit is contained in:
Anton Bachin 2018-03-27 22:57:43 -05:00 committed by Rudi Grinberg
parent 271063891b
commit f29ff0945d
2 changed files with 6 additions and 4 deletions

View File

@ -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 ->

View File

@ -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}