diff options
author | Dries Buytaert <dries@buytaert.net> | 2003-01-07 19:21:28 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2003-01-07 19:21:28 +0000 |
commit | affacdf508a3b5cc7f671a1c1252f63a2d2ac934 (patch) | |
tree | 354c6d9f95bf1e19499eaeddf46ec14eb91ec6cf | |
parent | 33da658c4d2471202553bee37f9db0ef13c23308 (diff) | |
download | brdo-affacdf508a3b5cc7f671a1c1252f63a2d2ac934.tar.gz brdo-affacdf508a3b5cc7f671a1c1252f63a2d2ac934.tar.bz2 |
- Added a few line breaks in the HTML emitted by the table() function
for better readability of the HTML code. Patch by Moshe.
-rw-r--r-- | includes/common.inc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/includes/common.inc b/includes/common.inc index 4890b2776..611dc72c4 100644 --- a/includes/common.inc +++ b/includes/common.inc @@ -223,7 +223,7 @@ function table_cell($cell, $header = 0) { function table($header, $rows) { - $output .= "<table>"; + $output .= "<table>\n"; /* ** Emit the table header: @@ -234,7 +234,7 @@ function table($header, $rows) { foreach ($header as $cell) { $output .= table_cell($cell, 1); } - $output .= " </tr>"; + $output .= " </tr>\n"; } /* @@ -253,11 +253,11 @@ function table($header, $rows) { foreach ($row as $cell) { $output .= table_cell($cell, 0); } - $output .= " </tr>"; + $output .= " </tr>\n"; } } - $output .= "</table>"; + $output .= "</table>\n"; return $output; } |