Normalize NVMe attributes list

This commit is contained in:
bergware
2017-10-10 08:32:48 +02:00
parent b8a86026ce
commit 8b5b6f283d

View File

@@ -93,7 +93,7 @@ case "attributes":
foreach ($output as $line) {
if (strpos($line,':')===false) continue;
list($name,$value) = explode(':', $line);
echo "<tr><td>-</td><td>".ucfirst(strtolower($name))."</td><td colspan='8'>$value</td></tr>";
echo "<tr><td>-</td><td>".ucfirst(strtolower($name))."</td><td colspan='8'>".trim($value)."</td></tr>";
}
}
break;