From: Claudio Sacerdoti Coen Date: Mon, 4 Feb 2013 20:27:04 +0000 (+0000) Subject: Bug fixed in pretty printing of mutual inductive types. X-Git-Tag: make_still_working~1275 X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=commitdiff_plain;h=b2837b13dcc9a154440af561e7a4dc78af215bac Bug fixed in pretty printing of mutual inductive types. --- diff --git a/matita/components/ng_extraction/ocaml.ml b/matita/components/ng_extraction/ocaml.ml index 001845e35..2ef1afaa0 100644 --- a/matita/components/ng_extraction/ocaml.ml +++ b/matita/components/ng_extraction/ocaml.ml @@ -560,15 +560,16 @@ let pp_ind status co ind = status, pp_logical_ind p ++ res else let s = !init in - let status,res = - pp_one_ind - status prefix p.ip_vars names.(i) cnames.(i) p.ip_types in - let status,res2 = pp status (i+1) in begin init := (fnl () ++ str "and "); - status, - s ++ - (if co then pp_coind p.ip_vars names.(i) else mt ()) ++ res ++ res2 + let status,res = + pp_one_ind + status prefix p.ip_vars names.(i) cnames.(i) p.ip_types in + let status,res2 = pp status (i+1) in + status, + s ++ + (if co then pp_coind p.ip_vars names.(i) else mt ()) ++ + res ++ res2 end end in