type html_msg = [ `Error of html_tag | `Msg of html_tag ]
+let string_of_html_msg =
+ let rec string_of_html_tag = function
+ | `T s -> s
+ | `L msgs -> String.concat "" (List.map string_of_html_tag msgs)
+ | `BR -> "\n"
+ in
+ function
+ | `Error tag -> "Error: " ^ string_of_html_tag tag
+ | `Msg tag -> string_of_html_tag tag
+
class html_logger ?width ?height ?packing ?show () =
let scrolled_window = GBin.scrolled_window ?packing ?show () in
let vadj = scrolled_window#vadjustment in
type html_tag = [ `BR | `L of html_tag list | `T of string ]
type html_msg = [ `Error of html_tag | `Msg of html_tag ]
+val string_of_html_msg: html_msg -> string
+
class html_logger:
?width:int -> ?height:int -> ?packing:(GObj.widget -> unit) -> ?show:bool ->
unit ->