X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fpreview.ml;h=10e8a4acfc31d5f8dd31bf1d9a9a0192407db334;hb=89e8d5757ca111d16ce3dfcc1ce4f2c00a119c85;hp=6fd0a2b370e0457cab06ffd41cd0174569971820;hpb=50799fee9a4c3906fe0ab9988df83af2109fa269;p=cocanwiki.git diff --git a/scripts/preview.ml b/scripts/preview.ml index 6fd0a2b..10e8a4a 100644 --- a/scripts/preview.ml +++ b/scripts/preview.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: preview.ml,v 1.5 2004/10/04 15:19:56 rich Exp $ + * $Id: preview.ml,v 1.6 2004/10/23 12:00:24 rich Exp $ * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -34,7 +34,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ _ = let xhtml = Wikilib.xhtml_of_content dbh hostid content in q#header ~content_type:"text/html; charset=utf-8" (); - print_string r xhtml + ignore (print_string r xhtml) let () = register_script ~restrict:[CanView] run