summaryrefslogtreecommitdiff
path: root/buildscripts/texbuilder
diff options
context:
space:
mode:
authorCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 15:56:48 +0200
committerCiro Mattia Gonano <ciromattia@gmail.com>2013-09-11 15:57:07 +0200
commit3069eaf35e833ffe4a1c1c7829dd7e168ae27420 (patch)
treed0c2e4d934cc34ba7d4232f759923b5a257dcb21 /buildscripts/texbuilder
parentb833247ce597ec26159b46c8dfbea7f1e265950b (diff)
Merge up to r3319
Diffstat (limited to 'buildscripts/texbuilder')
-rw-r--r--buildscripts/texbuilder/Page2Tex.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/buildscripts/texbuilder/Page2Tex.php b/buildscripts/texbuilder/Page2Tex.php
index eea0ab7e..b0d37149 100644
--- a/buildscripts/texbuilder/Page2Tex.php
+++ b/buildscripts/texbuilder/Page2Tex.php
@@ -30,7 +30,7 @@ class Page2Tex
{
return "\begin{small}\begin{verbatim}".
str_replace($this->_verb_find, $this->_verb_replace, $matches[1]).
- "\end{verbatim}\end{small}\n";
+ '\end{verbatim}\end{small}'."\n";
}
function escape_verb($matches)
@@ -242,8 +242,8 @@ class Page2Tex
$this->_tabular_total = count($widths);
$this->_tabular_col = 0;
- $begin = "\begin{table}[!hpt]\centering \n \begin{tabular}{".$options['align']."}\\hline";
- $end = "\end{tabular} \n \end{table}\n";
+ $begin = '\begin{table}[!hpt]\centering '."\n".' \begin{tabular}{'.$options['align'].'}\hline';
+ $end = '\end{tabular} '."\n".'\end{table}'."\n";
$table = preg_replace('/<\/tr>/', '\\\\\\\\ \hline', $matches[2]);
$table = preg_replace('/<tr>/', '', $table);
$table = preg_replace('/<th>([^<]+)<\/th>/', '\textbf{$1} &', $table);
@@ -267,7 +267,7 @@ class Page2Tex
function mbox($matches)
{
- return "\n\begin{mybox}\n".$matches[1]."\n\end{mybox}\n";
+ return "\n\begin{mybox}\n".$matches[1]."\n".'\end{mybox}'."\n";
}
function get_chapter_label($chapter)