diff options
author | ctrlaltca@gmail.com <> | 2011-05-24 22:34:43 +0000 |
---|---|---|
committer | ctrlaltca@gmail.com <> | 2011-05-24 22:34:43 +0000 |
commit | 58544be11ffc793eb39d613ce7878a7feba1ee02 (patch) | |
tree | 6dbcc91bff7697bec82088bc2cfe8fb280ed5731 /buildscripts/texbuilder | |
parent | b6ec303f50cfa233374d12b06a539025da70e303 (diff) |
fixed quickstart pdf buildscript
Diffstat (limited to 'buildscripts/texbuilder')
-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);
|