]> matita.cs.unibo.it Git - helm.git/blobdiff - helm/ocaml/cic_transformations/boxPp.ml
- handle Box.Space in textual pretty printing
[helm.git] / helm / ocaml / cic_transformations / boxPp.ml
index fd06a42039835bc936cf478273b03aaad2b927c0..ea6813cf2efb8dcb005ddd74eda62f7ad3b99468 100644 (file)
@@ -29,7 +29,7 @@ let to_string object_to_string b =
     function
        [] -> layout := current_s::!layout
       | Box.Text (_,s)::tl -> aux_h (current_s ^ s) tl
-      | (Box.Space _)::_ -> assert false
+      | (Box.Space _)::tl -> aux_h (current_s ^ " ") tl
       | Box.H (_,bl)::tl -> aux_h current_s (bl@tl)
       | Box.V (_,[])::tl -> aux_h current_s tl
       | Box.V (_,[b])::tl -> aux_h current_s (b::tl)