diff options
author | Jun FURUSE / 古瀬 淳 <jun.furuse@gmail.com> | 2005-09-08 02:01:39 +0000 |
---|---|---|
committer | Jun FURUSE / 古瀬 淳 <jun.furuse@gmail.com> | 2005-09-08 02:01:39 +0000 |
commit | dfc963be1a4d0b0f0f53db74cd07aab3f9ccb8b8 (patch) | |
tree | f8588e2edced51157bacae0793b982562e1176c0 | |
parent | c28d02a4ed279fb507074f04d0694225ac288ba0 (diff) | |
download | ocaml-gcaml3.tar.gz |
fix of printergcaml3
git-svn-id: http://caml.inria.fr/svn/ocaml/branches/gcaml3@7047 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02
-rw-r--r-- | gcamllib/gprint.ml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcamllib/gprint.ml b/gcamllib/gprint.ml index 3bfd86b7ac..ef44c5204a 100644 --- a/gcamllib/gprint.ml +++ b/gcamllib/gprint.ml @@ -167,10 +167,10 @@ and print_regular_record self ppf decl args labels v = in get_fields 0 labels in - fprintf ppf "@[<2>{ %a }@]" + fprintf ppf "@[<hov2>{ %a }@]" (print_list (fun ppf () -> fprintf ppf ";@ ") (fun ppf ((l,p),v) -> - fprintf ppf "%s = %a" l p (Obj.repr v))) + fprintf ppf "@[<2>%s=@ %a@]" l p (Obj.repr v))) (List.combine labels_and_subprinters fields) and print_float_record self ppf decl args labels v = @@ -183,10 +183,10 @@ and print_float_record self ppf decl args labels v = let values_as_float = Array.to_list (Obj.obj v : float array) in - fprintf ppf "@[<2>{ %a }@]" + fprintf ppf "@[<hov2>{ %a }@]" (print_list (fun ppf () -> fprintf ppf ";@ ") (fun ppf ((l,p),v) -> - fprintf ppf "%s = %a" l p (Obj.repr v))) + fprintf ppf "@[<2>%s=@ %a@]" l p (Obj.repr v))) (List.combine labels_and_subprinters values_as_float) let rec printer ty ppf v = gen_print printer ty ppf v |