diff --git a/api/etemplate.php b/api/etemplate.php
index 7e9f5811ce..7d4508c7a6 100644
--- a/api/etemplate.php
+++ b/api/etemplate.php
@@ -357,7 +357,7 @@ function send_template()
{
$indent = $matches[1];
$tabbox_attrs = parseAttrs($matches[2]);
- unset($tabbox_attrs['align_tabs'], $tabbox_attrs['id']);
+ unset($tabbox_attrs['align_tabs']);
if (preg_match_all('##', $matches[3], $tabs) !==
preg_match_all('##', $matches[4], $panels))
{
@@ -371,10 +371,9 @@ function send_template()
$tab_attrs['summary'] = $tab_attrs['label'];
$tab_attrs['title'] = $tab_attrs['statustext'];
unset($tab_attrs['label'], $tab_attrs['statustext']);
- $tab_attrs += $tabbox_attrs;
- $details[] = $indent.''."\n\t$indent".$panels[0][$n]."\n$indent";
+ $details[] = $indent."\t".''."\n$indent\t\t".$panels[0][$n]."\n$indent\t";
}
- return implode("\n", $details);
+ return $indent.'\n".implode("\n", $details)."\n$indent";
}, $str);
}