[pmwiki-users] how to put new line in a script to wiki

Hladůvka Jiří mail at revida.sk
Tue May 10 14:50:42 CDT 2011


Try the character having ascii decimal code 184
I think the lines before "text=" can have CRLF and the contents has that 
character as new line.
You can use any character if you declare it with "newline=" key
See http://www.pmwiki.org/wiki/PmWiki/PageFileFormat
I hope it helps

Regards,
Jiri


Dne 10.5.2011 15:51, Oguz Altun napsal(a):
> I am writing a very simple custom directive (:querypst ... :) that will
> make querying a pmwiki simple table possible. I select the rows I like,
> and join back them to a pmwiki simple table, and return back.
>
> Like this:
>
> function querypst($in){
> ...
> $out .= $header_line;
> ...
> $out .= '\n'.$a_good_line;
> ...
> $out .= '\n'.$another_good_line;
> ...
> return $out;
> }
>
> I am almost there, but that '\n' does not work. In the wiki page, I see
> a table with a single long row. I tried %0a instead of '\n', too,
> without success.
>
> What should I use instead of '\n'?
>
> thx.
>
>
>
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> .
>
>
> __________ Informacia od NOD32 6110 (20110510) __________
>
> Tato sprava bola preverena antivirusovym systemom NOD32.
> http://www.eset.sk
>
>
>



More information about the pmwiki-users mailing list