aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--htmlreport/templates/plain.txt.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/htmlreport/templates/plain.txt.php b/htmlreport/templates/plain.txt.php
index 5e15595..fbf7a9d 100644
--- a/htmlreport/templates/plain.txt.php
+++ b/htmlreport/templates/plain.txt.php
@@ -1,6 +1,6 @@
<?php echo pack("CCC", 0xef, 0xbb, 0xbf); ?>
-Zimmer Temperatur Luftfeuchte
--------------------------------------------
+Zimmer Temperatur Luftfeuchte
+---------------------------------------
<?php
plain_line($data[3]);
echo "\n";
@@ -17,8 +17,8 @@ echo date('c') . "\n";
function plain_line($datum) {
echo str_pad($datum['name'], 18, ' ');
- echo ' ' . str_pad($datum['temperature'] . '°C', 13, ' ');
- echo ' ' . $datum['humidity'] . '%';
+ echo ' ' . str_pad($datum['temperature'] . '°C', 9, ' ', STR_PAD_LEFT);
+ echo ' ' . str_pad($datum['humidity'] . '%', 11, ' ', STR_PAD_LEFT);
echo "\n";
}
?>