From 4c8fc7b9a757e5d18de51823519cd8e4361d90a1 Mon Sep 17 00:00:00 2001 From: Alex Marin Date: Tue, 1 May 2012 22:28:14 +0300 Subject: [PATCH] Export latex coding style: spacing and indentation --- libraries/export/latex.php | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/libraries/export/latex.php b/libraries/export/latex.php index 5c54e93b57..cab6279531 100644 --- a/libraries/export/latex.php +++ b/libraries/export/latex.php @@ -159,7 +159,7 @@ if (isset($plugin_list)) { * * @param string $string the string to convert * - * @return string the converted string with escape codes + * @return string the converted string with escape codes * * @access private */ @@ -417,8 +417,8 @@ if (isset($plugin_list)) { $do_mime = false, $dates = false, $export_mode, - $export_type) - { + $export_type + ) { global $cfgRelation; /** @@ -576,16 +576,14 @@ if (isset($plugin_list)) { if ($row['Key']=='PRI') { $pos=strpos($local_buffer, "\000"); $local_buffer = '\\textit{' - . substr( - $local_buffer, 0, $pos) . '}' . substr($local_buffer, $pos - ); + . substr($local_buffer, 0, $pos) + . '}' . substr($local_buffer, $pos); } if (in_array($field_name, $unique_keys)) { $pos=strpos($local_buffer, "\000"); $local_buffer = '\\textbf{' - . substr( - $local_buffer, 0, $pos) . '}' . substr($local_buffer, $pos - ); + . substr($local_buffer, 0, $pos) + . '}' . substr($local_buffer, $pos); } $buffer = str_replace("\000", ' & ', $local_buffer); $buffer .= ' \\\\ \\hline ' . $crlf;