[pmwiki-users] Problem with IncludeWikiPage recipe

Mindy Scollo mscollo at gmail.com
Sun Mar 4 22:52:59 CST 2007


I'm using the IncludeWikiPage recipe. Also, I have all my wikis set up
to force line breaks with:

$HTMLPNewline = '<br />';

in the farmconfig file.

The problem: Whenever I use the (:includewikipage :) directive, the
line breaks are not honored. It works if I use the standard "\\" to
indicate a line break, but not otherwise.

Does anyone know a solution to this? Here's the script, as it is in
the Cookbook section at pmwiki.org:

Markup('includewikipage', 'directives',
          "/\\(:includewikipage\\s+(http:[^$UrlExcludeChars]*?)\\s*:\\)/e",
          "PRR().implode('',file(str_replace('&amp;','&','$1')))");



More information about the pmwiki-users mailing list