Improved formatting of iommu groups

This commit is contained in:
bergware
2017-10-14 14:18:37 +02:00
parent e49f3e5a2a
commit e4eacbcb6f

View File

@@ -31,11 +31,9 @@ if (empty($iommu_groups)) {
echo "<tr><td>".$iommu_groups[$i++]." ".$strDesc."</td></tr>";
}
} else {
$spacer = false;
foreach (explode("\n", $iommu_groups) as $iommu_group) {
if ($iommu_group[0]=='I') {
if ($spacer) echo "<tr><td colspan='2'>&nbsp;</td></tr>"; else $spacer = true;
echo "<tr><td>$iommu_group</td><td>";
echo "<tr><td colspan='2'>&nbsp;</td></tr><tr><td>$iommu_group</td><td>";
$append = true;
} else {
echo preg_replace("/^\t/",$append?"":"<tr><td></td><td>",$iommu_group)."</td></tr>";