From 15be96d7736550fbf097bb4dd3d4c971ef1f5cc1 Mon Sep 17 00:00:00 2001 From: "ctrlaltca@gmail.com" <> Date: Wed, 25 May 2011 09:34:54 +0000 Subject: backported build script fixes to branch/3.1 --- buildscripts/texbuilder/Page2Tex.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'buildscripts/texbuilder') 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