function ezProcessText($text)
 {
     // this function will intially be used to implement underlining support, but could be used for a range of other
     // purposes
     $text = parent::ezProcessText($text);
     $text = str_replace(array('<UL>', '</UL>', '<LI>', '</LI>', '<OL>', '</OL>', '</ol>', '<blockquote>', '</blockquote>'), array('<ul>', '</ul>', '<li>', '</li>', '<ol>', '</ul>', '</ul>', "<C:indent:20>\n", "<C:indent:-20>"), $text);
     //      $text = str_replace("<ul>\n","<ul>",$text);
     $text = preg_replace("/\n+\\s*(<ul>|<ol>)/", "\n\\1", $text);
     // some problemos fixed here - hack
     $text = preg_replace('/<text [^]]+>/', '', $text);
     $text = str_replace("<li>\n", "<li>", $text);
     $text = preg_replace("/\n+\\s*<li>/", "<li>", $text);
     $text = str_replace("<mybr>", "\n", $text);
     $text = str_replace('</li></ul>', '</ul>', $text);
     $text = preg_replace("/^\n(\\d+\\s+.*)/", '\\1', $text);
     $search = array('<ul>', '</ul>', '<ol>', '<li>', '</li>');
     $replace = array("<C:indent:20>\n", "\n<C:indent:-20>", "\n<C:indent:20:ordered>\n", '<C:bullet>', "\n");
     $text = str_replace($search, $replace, $text);
     $text = preg_replace("/([^\n])<C:bullet/", "\\1\n<C:bullet", $text);
     if (false) {
         $fp = @fopen("C:/Documents and Settings/Owner/Desktop/pdfsourceorig.txt", 'a');
         if ($fp) {
             fwrite($fp, $text);
             fclose($fp);
         }
     }
     return $text;
 }