From 682f7ef6933f4ad485baedddf7a30367d003d7bf Mon Sep 17 00:00:00 2001 From: wei <> Date: Thu, 25 Jan 2007 05:49:22 +0000 Subject: Fixed #502 --- buildscripts/texbuilder/Page2Tex.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'buildscripts/texbuilder/Page2Tex.php') diff --git a/buildscripts/texbuilder/Page2Tex.php b/buildscripts/texbuilder/Page2Tex.php index 2374647c..7ee4a171 100644 --- a/buildscripts/texbuilder/Page2Tex.php +++ b/buildscripts/texbuilder/Page2Tex.php @@ -211,6 +211,7 @@ class Page2Tex array($this, 'tabular'), $html); $html = preg_replace('//', '', $html); + $html = preg_replace('/
((.|\n)*?)<\/div>/', '', $html); $html = html_entity_decode($html); @@ -300,7 +301,7 @@ class Page2Tex $page = $this->page_count*1000; return "

"; } - + function set_block_content_id($content) { $content = preg_replace_callback('/

/', array($this, 'add_p'), $content); @@ -322,7 +323,7 @@ class Page2Tex return $matches[0]; } else - { + { $changes = str_replace('"source"', '"source block-content" id="code-'.$id.'"', $matches[0]); return $changes; } -- cgit v1.2.3