diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2011-10-31 21:04:45 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2011-10-31 21:04:45 +0100 |
| commit | aae088d05350f5752332cf27cd2166bcbe94b8c7 (patch) | |
| tree | 379da4c71153c25bf0071f4e03a3a54ee28cd211 | |
| parent | 844780dbf716d348e823024e55e7274a2af24e01 (diff) | |
| download | usb-wde1-tools-aae088d05350f5752332cf27cd2166bcbe94b8c7.tar.gz usb-wde1-tools-aae088d05350f5752332cf27cd2166bcbe94b8c7.zip | |
realign template file
| -rw-r--r-- | htmlreport/templates/plain.txt.php | 8 |
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"; } ?> |
