Hi all,
I have a funny one..
I wrote a few routines to take simple HTML formatted pages to numbered lists using pregreplace. Works great. Now I am adding PDF output to my site, so I need to create the same functionality, but in ASCII. And I am confused..
First off, the preg_replace seems to work:
$pattern = '/\<p\>(.*?)\<\/p\>/is';
$replace = '$1\r\n';
$preparation = preg_replace ($pattern, $replace, $preparation);
However, no matter what I try, I cannot get line breaks. The PDF generator class seems to be taking the \n and/or \r as string literals? I am using the EZPDF class (http://www.ros.co.nz/pdf) as my host is not willing to assist me with getting pdflib installed. How would I get proper linebreaks? Any suggestions?
Subsequently.. I would like this list to be numbered. Is there an easy way to do this? If so: how?
Thx,
Jelle