]> matita.cs.unibo.it Git - helm.git/commitdiff
eureka! match x with [ C gfds fsd fdg fdg fdg fd gfdg fd => c ] is
authorEnrico Tassi <enrico.tassi@inria.fr>
Sun, 14 Dec 2008 11:36:02 +0000 (11:36 +0000)
committerEnrico Tassi <enrico.tassi@inria.fr>
Sun, 14 Dec 2008 11:36:02 +0000 (11:36 +0000)
now correctly broken if too long

helm/software/components/content_pres/termContentPres.ml

index d6694cbb66419be45f3c88609c12f6434e4eef62..f1ea0b25e9abeb0b42a78842f7db2a58a721cc29 100644 (file)
@@ -145,16 +145,16 @@ let pp_ast0 t k =
         let mk_case_pattern =
          function
             Ast.Pattern (head, href, vars) ->
-             hvbox true false (ident_w_href href head :: List.map aux_var vars)
+             hvbox true true (ident_w_href href head :: 
+               List.flatten (List.map (fun x -> [break;x]) (List.map aux_var vars)))
           | Ast.Wildcard -> builtin_symbol "_"
         in
         let patterns' =
           List.map
             (fun (lhs, rhs) ->
               remove_level_info
-                (hvbox false true [
-                  hbox false true [
-                    mk_case_pattern lhs; builtin_symbol "\\Rightarrow" ];
+                (hovbox false true [ 
+                  mk_case_pattern lhs; break; builtin_symbol "\\Rightarrow"; 
                   break; top_pos (k rhs) ]))
             patterns
         in