From 2c97c0c5f0ca98b187dd43c11920fc5c5e0d3c00 Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sat, 12 Jun 2010 19:38:26 +0000 Subject: [PATCH] fix for meta HTML --- lam/lib/html.inc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lam/lib/html.inc b/lam/lib/html.inc index 5713cd89..2104d835 100644 --- a/lam/lib/html.inc +++ b/lam/lib/html.inc @@ -67,6 +67,8 @@ class htmlTable implements htmlElement { const header = "\n\n"; /** table footer */ const footer = "\n
\n"; + /** new line */ + const newLine = "\n"; private $elements = array(); @@ -94,7 +96,7 @@ class htmlTable implements htmlElement { * Adds another line to the table. */ public function addNewLine() { - $this->elements[] = "\n"; + $this->elements[] = htmlTable::newLine; } /** @@ -120,7 +122,9 @@ class htmlTable implements htmlElement { } // print simple Strings else { - echo $this->elements[$i]; + if ($i != (sizeof($this->elements) - 1) || !($this->elements[$i] == htmlTable::newLine) ) { + echo $this->elements[$i]; + } } } echo htmlTable::footer; @@ -534,7 +538,6 @@ class htmlTableExtendedSelect extends htmlSelect { echo $this->label; echo "\n\n\n"; $return = parent::generateHTML($module, $input, $values, $restricted, $tabindex, $scope); - echo "\n\n\n"; // print help link if ($this->helpID != null) { echo "\n\n\n"; @@ -698,7 +701,6 @@ class htmlTableExtendedInputCheckbox extends htmlInputCheckbox { echo "\n\n\n"; echo $this->label; } - echo "\n\n\n"; // print help link if ($this->helpID != null) { echo "\n\n\n"; @@ -814,7 +816,6 @@ class htmlTableExtendedInputTextarea extends htmlInputTextarea { } echo "\n\n\n"; $return = parent::generateHTML($module, $input, $values, $restricted, $tabindex, $scope); - echo "\n\n\n"; // print help link if ($this->helpID != null) { echo "\n\n\n";