From 58544be11ffc793eb39d613ce7878a7feba1ee02 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Tue, 24 May 2011 22:34:43 +0000 Subject: fixed quickstart pdf buildscript --- buildscripts/texbuilder/Page2Tex.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'buildscripts') diff --git a/buildscripts/texbuilder/Page2Tex.php b/buildscripts/texbuilder/Page2Tex.php index 04a60f93..008b30fa 100644 --- a/buildscripts/texbuilder/Page2Tex.php +++ b/buildscripts/texbuilder/Page2Tex.php @@ -210,9 +210,12 @@ class Page2Tex $html = preg_replace_callback('/\s*]*>((.|\n)*?)<\/table>/', array($this, 'tabular'), $html); - $html = preg_replace('//', '', $html); + $html = preg_replace('//', '', $html); $html = preg_replace('/
((.|\n)*?)<\/div>/', '', $html); + //useless divs + $html = preg_replace('/
]*">((.|\n)*?)<\/div>/', '$1', $html); + //since $html = preg_replace('/]+>/', '', $html); -- cgit v1.2.3