Commit affacdf5 authored by Dries's avatar Dries

- Added a few line breaks in the HTML emitted by the table() function
  for better readability of the HTML code.  Patch by Moshe.
parent 33da658c
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment