[pmwiki-users] [powertools] questions, ...

Hans design5 at softflow.co.uk
Fri Mar 28 09:46:09 CDT 2008

Friday, March 28, 2008, 12:47:23 PM, Stéphane Heckel wrote:

> yes, good idea.
> Having the choice to have CRLF as a separator (instead comma) would make the
> debug process easier !

something like
        //comma seperated names as default
        $sep = $opt['sep'] ? $opt['sep'] : ",";
        $sep = str_replace('\n',"\n",$sep);
        $sep = str_replace('\r',"\r",$sep);
        if ($sep=='LF') $sep = "\n";
        if ($sep=='CRLF') $sep = "\r\n";

        return implode($sep, $plist);

does it need distinction to specify LF or CRLF or \n or \r\n ?


More information about the pmwiki-users mailing list