diff options
author | ctrlaltca@gmail.com <> | 2011-05-25 09:34:54 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-05-25 09:34:54 +0000 |
commit | 15be96d7736550fbf097bb4dd3d4c971ef1f5cc1 (patch) | |
tree | 0ae9feb919e2303d2d034c08bce057540fe6b689 /buildscripts/texbuilder/Page2Tex.php | |
parent | 8aa27c48cd1b620e3a7dee1e2de2cdc67f4e9874 (diff) |
backported build script fixes to branch/3.1
Diffstat (limited to 'buildscripts/texbuilder/Page2Tex.php')
-rw-r--r-- | buildscripts/texbuilder/Page2Tex.php | 5 |
1 files changed, 4 insertions, 1 deletions
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*tabular:([^-]*)-->\s*<table[^>]*>((.|\n)*?)<\/table>/',
array($this, 'tabular'), $html);
- $html = preg_replace('/<!--(.*)-->/', '', $html);
+ $html = preg_replace('/<!--((.|\n)*?)-->/', '', $html);
$html = preg_replace('/<div class="last-modified">((.|\n)*?)<\/div>/', '', $html);
+ //useless divs
+ $html = preg_replace('/<div [^>]*">((.|\n)*?)<\/div>/', '$1', $html);
+
//since
$html = preg_replace('/<com:SinceVersion[^>]+>/', '', $html);
|