summaryrefslogtreecommitdiff
path: root/buildscripts/texbuilder
diff options
context:
space:
mode:
Diffstat (limited to 'buildscripts/texbuilder')
-rw-r--r--buildscripts/texbuilder/Page2Tex.php4
-rw-r--r--buildscripts/texbuilder/quickstart/build.php2
2 files changed, 4 insertions, 2 deletions
diff --git a/buildscripts/texbuilder/Page2Tex.php b/buildscripts/texbuilder/Page2Tex.php
index 7ee4a171..ad712183 100644
--- a/buildscripts/texbuilder/Page2Tex.php
+++ b/buildscripts/texbuilder/Page2Tex.php
@@ -174,7 +174,7 @@ class Page2Tex
//text modifiers
$html = preg_replace('/<(b|strong)[^>]*>([^<]*)<\/(b|strong)>/', '\textbf{$2}', $html);
- $html = preg_replace('/<i[^>]*>([^<]*)+?<\/i>/', '\emph{$1}', $html);
+ $html = preg_replace('/<i [^>]*>([^<]*)+?<\/i>/', '\emph{$1}', $html);
$html = preg_replace_callback('/<tt>([^<]*)<\/tt>/', array($this,'texttt'), $html);
//links
@@ -213,6 +213,8 @@ class Page2Tex
$html = preg_replace('/<!--(.*)-->/', '', $html);
$html = preg_replace('/<div class="last-modified">((.|\n)*?)<\/div>/', '', $html);
+ //since
+ $html = preg_replace('/<com:SinceVersion[^>]+>/', '', $html);
$html = html_entity_decode($html);
diff --git a/buildscripts/texbuilder/quickstart/build.php b/buildscripts/texbuilder/quickstart/build.php
index 2cee7fee..81a12d4c 100644
--- a/buildscripts/texbuilder/quickstart/build.php
+++ b/buildscripts/texbuilder/quickstart/build.php
@@ -42,7 +42,7 @@ foreach($pages as $chapter => $sections)
$content .= $parser->get_section_label($section);
$file_content = file_get_contents($page);
- $tex =
+ //$tex =
$content .= $parser->parse_html($page,$file_content);
}