diff options
author | Jun FURUSE / 古瀬 淳 <jun.furuse@gmail.com> | 2004-06-18 05:04:14 +0000 |
---|---|---|
committer | Jun FURUSE / 古瀬 淳 <jun.furuse@gmail.com> | 2004-06-18 05:04:14 +0000 |
commit | 5e1bf20850aaa9b1ceb86a971848609ee9e84c47 (patch) | |
tree | f3a6e5b5c38263fe527e6275ff95425f12637226 /ocamldoc/odoc_str.ml | |
parent | 8ec769214e067da9ee8b33d05f4ef275e9269dd5 (diff) | |
download | ocaml-gcaml.tar.gz |
port to the latest ocaml (2004/06/18)gcaml
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gcaml@6419 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
Diffstat (limited to 'ocamldoc/odoc_str.ml')
-rw-r--r-- | ocamldoc/odoc_str.ml | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/ocamldoc/odoc_str.ml b/ocamldoc/odoc_str.ml index c644675f6c..de82a9e46a 100644 --- a/ocamldoc/odoc_str.ml +++ b/ocamldoc/odoc_str.ml @@ -69,11 +69,14 @@ let raw_string_of_type_list sep type_list = Format.pp_print_flush fmt (); Buffer.contents buf -let string_of_type_list sep type_list = +let string_of_type_list ?par sep type_list = let par = - match type_list with - [] | [_] -> false - | _ -> true + match par with + | Some b -> b + | None -> + match type_list with + [] | [_] -> false + | _ -> true in Printf.sprintf "%s%s%s" (if par then "(" else "") |