From eab6bb13b9efb3e1c6d725368368de4d74b00946 Mon Sep 17 00:00:00 2001 From: wei <> Date: Mon, 7 May 2007 04:17:37 +0000 Subject: Update Active Record docs. --- buildscripts/texbuilder/Page2Tex.php | 4 +++- buildscripts/texbuilder/quickstart/build.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'buildscripts/texbuilder') diff --git a/buildscripts/texbuilder/Page2Tex.php b/buildscripts/texbuilder/Page2Tex.php index 7ee4a171..ad712183 100644 --- a/buildscripts/texbuilder/Page2Tex.php +++ b/buildscripts/texbuilder/Page2Tex.php @@ -174,7 +174,7 @@ class Page2Tex //text modifiers $html = preg_replace('/<(b|strong)[^>]*>([^<]*)<\/(b|strong)>/', '\textbf{$2}', $html); - $html = preg_replace('/]*>([^<]*)+?<\/i>/', '\emph{$1}', $html); + $html = preg_replace('/]*>([^<]*)+?<\/i>/', '\emph{$1}', $html); $html = preg_replace_callback('/([^<]*)<\/tt>/', array($this,'texttt'), $html); //links @@ -213,6 +213,8 @@ class Page2Tex $html = preg_replace('//', '', $html); $html = preg_replace('/
((.|\n)*?)<\/div>/', '', $html); + //since + $html = preg_replace('/]+>/', '', $html); $html = html_entity_decode($html); diff --git a/buildscripts/texbuilder/quickstart/build.php b/buildscripts/texbuilder/quickstart/build.php index 2cee7fee..81a12d4c 100644 --- a/buildscripts/texbuilder/quickstart/build.php +++ b/buildscripts/texbuilder/quickstart/build.php @@ -42,7 +42,7 @@ foreach($pages as $chapter => $sections) $content .= $parser->get_section_label($section); $file_content = file_get_contents($page); - $tex = + //$tex = $content .= $parser->parse_html($page,$file_content); } -- cgit v1.2.3