[pmwiki-users] file: directive

Patrick R. Michaud pmichaud at pobox.com
Wed Dec 7 14:15:32 CST 2005


On Wed, Dec 07, 2005 at 03:09:32PM -0500, Henrik Bechmann wrote:
> It appears to me that the file specified in the file directive:
> 
> <!--file:somefile.txt-->
> 
> does not support spaces in the file name (or - more difficult - the path 
> for that matter):
> 
> <!--file:'some file.txt'-->
> 
> and that there is no delimiter to allow this (I am using version 2.0.13).
> 
> Is this true? Is there some way around this?

That's correct, at present there's not a way to have spaces in
<!--file:...--> directives.  It can be worked around somewhat by
using a custom function:

    function filewithspaces($pagename, $name) { include($name); return; }

and then using <!--function:filewithspaces some file.txt-->

Pm 




More information about the pmwiki-users mailing list