X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=components%2Fcontent_pres%2FboxPp.ml;h=53149877ea73a1eb71e3c5b2f75ec4f7f78df552;hb=346c502bf7c78629e75e49f8d9ca379144fdb5df;hp=7a2fa9912f31144cb135e72441fe03f7b1bfd6fc;hpb=7f2444c2670cadafddd8785b687ef312158376b0;p=helm.git diff --git a/components/content_pres/boxPp.ml b/components/content_pres/boxPp.ml index 7a2fa9912..53149877e 100644 --- a/components/content_pres/boxPp.ml +++ b/components/content_pres/boxPp.ml @@ -31,7 +31,7 @@ module Pres = Mpresentation let string_space = " " let string_space_len = String.length string_space -let string_indent = string_space +let string_indent = (* string_space *) "" let string_indent_len = String.length string_indent let string_ink = "##" let string_ink_len = String.length string_ink @@ -93,7 +93,7 @@ let fixed_rendering s = let s_len = String.length s in (fun _ -> s_len, [s]) -let render_to_strings size markup = +let render_to_strings choose_action size markup = let max_size = max_int in let rec aux_box = function @@ -101,7 +101,7 @@ let render_to_strings size markup = | Box.Space _ -> fixed_rendering string_space | Box.Ink _ -> fixed_rendering string_ink | Box.Action (_, []) -> assert false - | Box.Action (_, hd :: _) -> aux_box hd + | Box.Action (_, l) -> aux_box (choose_action l) | Box.Object (_, o) -> aux_mpres o | Box.H (attrs, children) -> let spacing = want_spacing attrs in @@ -236,6 +236,6 @@ let render_to_strings size markup = in snd (aux_mpres markup size) -let render_to_string size markup = - String.concat "\n" (render_to_strings size markup) +let render_to_string choose_action size markup = + String.concat "\n" (render_to_strings choose_action size markup)