diff --git a/main/newscorm/openoffice_text_document.class.php b/main/newscorm/openoffice_text_document.class.php index f99c05eaf0..ee6dbb5878 100644 --- a/main/newscorm/openoffice_text_document.class.php +++ b/main/newscorm/openoffice_text_document.class.php @@ -70,25 +70,27 @@ class OpenOfficeTextDocument extends OpenofficeDocument { function format_page_content($header, $content, $path_to_folder) { - // Tidy - $tidy = new tidy; - $config = array( - 'indent' => true, - 'output-xhtml' => true, - 'wrap' => 200, - 'clean' => true, - 'bare' => true); - $tidy->parseString($header.$content, $config, 'utf8'); - $tidy->cleanRepair(); - $content = $tidy; // limit the width of the doc - $max_width = '720px'; - $content = preg_replace("|
]*>|","\\0\r\n