summaryrefslogtreecommitdiff
path: root/buildscripts/texbuilder/Page2Tex.php
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/texbuilder/Page2Tex.php')
-rw-r--r--buildscripts/texbuilder/Page2Tex.php5
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);