Allow whitespace at the end of a macro line.
authorrich <rich>
Wed, 26 Jul 2006 15:01:17 +0000 (15:01 +0000)
committerrich <rich>
Wed, 26 Jul 2006 15:01:17 +0000 (15:01 +0000)
scripts/lib/wikilib.ml

index a4a8e77..e0213d3 100644 (file)
@@ -1,7 +1,7 @@
 (* 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
@@ -640,7 +640,7 @@ let numbered_re = Pcre.regexp "^(\\#)\\s+(.*)"
 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. *)