(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: wikilib.ml,v 1.6 2006/07/26 14:59:04 rich Exp $
+ * $Id: wikilib.ml,v 1.7 2006/07/26 15:01:17 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
let preformatted_re = Pcre.regexp "^ (.*)"
let html_open_re = Pcre.regexp "^<html>\\s*$"
let html_close_re = Pcre.regexp "^</html>\\s*$"
-let macro_re = Pcre.regexp "^{{(\\w+)}}$"
+let macro_re = Pcre.regexp "^{{(\\w+)}}\\s*$"
let xhtml_of_content dbh hostid text =
(* Split the text into lines. *)