From 3069eaf35e833ffe4a1c1c7829dd7e168ae27420 Mon Sep 17 00:00:00 2001 From: Ciro Mattia Gonano Date: Wed, 11 Sep 2013 15:56:48 +0200 Subject: Merge up to r3319 --- buildscripts/texbuilder/Page2Tex.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'buildscripts/texbuilder/Page2Tex.php') 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('//', '', $table); $table = preg_replace('/([^<]+)<\/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) -- cgit v1.2.3