File tree 2 files changed +7
-3
lines changed
2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -335,6 +335,9 @@ Working version
335
335
- GPR#2105: Change verbatim to caml_example in documentation
336
336
(Maxime Flin, review by Florian Angeletti)
337
337
338
+ - GPR#2114: ocamldoc, improved manpages for documentation inside modules
339
+ (Florian Angeletti, review by Gabriel Scherer)
340
+
338
341
### Compiler distribution build system:
339
342
340
343
- GPR#1776: add -no-install-bytecode-programs and related configure options to
Original file line number Diff line number Diff line change @@ -319,7 +319,8 @@ class man =
319
319
self#man_of_text2 b t;
320
320
bs b " \n .sp\n "
321
321
| Odoc_info. Title (_ , _ , t ) ->
322
- self#man_of_text2 b [Odoc_info. Code (Odoc_info. string_of_text t)]
322
+ let txt = Odoc_info. string_of_text t in
323
+ bp b " .SS %s\n " txt
323
324
| Odoc_info. Latex _ ->
324
325
(* don't care about LaTeX stuff in HTML. *)
325
326
()
@@ -810,13 +811,13 @@ class man =
810
811
(* * Print groff string for a module comment.*)
811
812
method man_of_module_comment b text =
812
813
bs b " \n .PP\n " ;
813
- self#man_of_text b [ Code ( " === " ^ ( Odoc_misc. string_of_text text) ^ " === " )] ;
814
+ self#man_of_text b text;
814
815
bs b " \n .PP\n "
815
816
816
817
(* * Print groff string for a class comment.*)
817
818
method man_of_class_comment b text =
818
819
bs b " \n .PP\n " ;
819
- self#man_of_text b [ Code ( " === " ^ ( Odoc_misc. string_of_text text) ^ " === " )] ;
820
+ self#man_of_text b text;
820
821
bs b " \n .PP\n "
821
822
822
823
method man_of_recfield b modname f =
You can’t perform that action at this time.
0 commit comments