diff --git a/chat.php b/chat.php index 945fba2..d466488 100644 --- a/chat.php +++ b/chat.php @@ -35,11 +35,11 @@ function show_messages() $d = new DateTime($message['msgdate']); $m = htmlspecialchars($message['msg']); if ($message['type'] == 'sys') { /* Системка */ - echo sprintf('%s %s', $d->format('H:i'), $m) . PHP_EOL; + echo sprintf('%s %s
', $d->format('H:i'), $m); } elseif ($message['type'] == 'sms') { /* Телеграмма */ - echo sprintf('[Телеграмма]: %s %s', $d->format('H:i'), $m) . PHP_EOL; + echo sprintf('[Телеграмма]: %s %s
', $d->format('H:i'), $m); } else { - echo sprintf('%s [%s]: %s', $d->format('H:i'), $message['from'], $m) . PHP_EOL; + echo sprintf('%s [%s]: %s
', $d->format('H:i'), $message['from'], $m); } } } catch (\Krugozor\Database\Mysql\Exception $e) {